Parcourir la source

Remove ~ from version checks in maintainer scripts

It does not make sense to allow previous versions in maintainer scripts
for dpkg releases.
Guillem Jover il y a 14 ans
Parent
commit
ed81506e07
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      debian/dpkg.postrm
  2. 2 2
      debian/dpkg.prerm

+ 1 - 1
debian/dpkg.postrm

@@ -55,7 +55,7 @@ case "$1" in
 
     upgrade)
 	# Downgrade the multiarch db to a “monoarch” db layout
-	if dpkg --compare-versions "$2" lt 1.16.2~; then
+	if dpkg --compare-versions "$2" lt 1.16.2; then
 	    cleanup_multiarch_infodb
 	fi
 	;;

+ 2 - 2
debian/dpkg.prerm

@@ -141,11 +141,11 @@ case "$1" in
     upgrade)
         # Allow the downgrade only if no package is using the
 	# (interest|activate)-noawait trigger directives
-        if dpkg --compare-versions "$2" lt 1.16.1~; then
+        if dpkg --compare-versions "$2" lt 1.16.1; then
             ensure_no_triggers_noawait
         fi
         # Downgrade the multiarch db to a “monoarch” db layout
-        if dpkg --compare-versions "$2" lt 1.16.2~; then
+        if dpkg --compare-versions "$2" lt 1.16.2; then
             downgrade_multiarch_infodb
         fi
         ;;