Explorar el Código

Remove ~ from version checks in maintainer scripts

It does not make sense to allow previous versions in maintainer scripts
for dpkg releases.
Guillem Jover hace 14 años
padre
commit
ed81506e07
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  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)
     upgrade)
 	# Downgrade the multiarch db to a “monoarch” db layout
 	# 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
 	    cleanup_multiarch_infodb
 	fi
 	fi
 	;;
 	;;

+ 2 - 2
debian/dpkg.prerm

@@ -141,11 +141,11 @@ case "$1" in
     upgrade)
     upgrade)
         # Allow the downgrade only if no package is using the
         # Allow the downgrade only if no package is using the
 	# (interest|activate)-noawait trigger directives
 	# (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
             ensure_no_triggers_noawait
         fi
         fi
         # Downgrade the multiarch db to a “monoarch” db layout
         # 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
             downgrade_multiarch_infodb
         fi
         fi
         ;;
         ;;