]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1700: * Make dh_gconf postinst more portable. 4.2.14
authorjoey <joey>
Sun, 11 Jul 2004 22:21:54 +0000 (22:21 +0000)
committerjoey <joey>
Sun, 11 Jul 2004 22:21:54 +0000 (22:21 +0000)
   * Strip spoch when generating udeb filenames. Closes: #258864

Debian/Debhelper/Dh_Lib.pm
autoscripts/postinst-gconf

index 6ccd096639219f6325aab1ec3c3f64efe0a1172a..c64f6433e42922f4a15a200f8a848a9561543b8c 100644 (file)
@@ -623,7 +623,9 @@ sub udeb_filename {
        
        my $filearch=$package_arches{$package} eq 'all' ? "all" : buildarch();
        isnative($package); # side effect
-       return "${package}_$dh{VERSION}_$filearch.udeb";
+       my $version=$dh{VERSION};
+       $version=~s/^[0-9]+://; # strip any epoch
+       return "${package}_${version}_$filearch.udeb";
 }
 
 1
index f4a7c82d7f13ec55ad8ee49e14b7af5d9099f041..a0674bfd31f56ba525c13c9843100ff96c7cbf3e 100644 (file)
@@ -9,5 +9,5 @@ if [ "$1" = "configure" ]; then
                fi
        done
 
-       kill -HUP `pidof gconfd-2` >/dev/null 2>&1 || true
+       kill -HUP `pidof gconfd-2` >/dev/null 2>&1 || true
 fi