]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_installdeb: In udeb mode, support the menutest and isinstallable maintainer script...
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 5 Aug 2009 15:02:46 +0000 (11:02 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 5 Aug 2009 15:02:46 +0000 (11:02 -0400)
debian/changelog
dh_installdeb

index d99c651f6e1fff80cffde08f3eab7996b40de45a..d17cad1b8c7032bf75b32de2591046eae58a0d4a 100644 (file)
@@ -4,6 +4,8 @@ debhelper (7.3.10) UNRELEASED; urgency=low
     when Build does not exist (ie due to being run twice in a row).
     Closes: #539848
   * dh_builddeb: Fix man page typo. Closes: #539976
+  * dh_installdeb: In udeb mode, support the menutest and isinstallable
+    maintainer scripts. Closes: #540079 Thanks, Colin Watson.
 
  -- Joey Hess <joeyh@debian.org>  Tue, 04 Aug 2009 13:19:31 -0400
 
index fdc76e60e8c114feac1a8b85d6282d2171326724..93198ae5c0e589fc06e71c6183be6a406d2cdfa2 100755 (executable)
@@ -54,10 +54,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
        if (is_udeb($package)) {
                # For udebs, only do the postinst, and no #DEBHELPER#.
-               my $f=pkgfile($package,"postinst");
-               if ($f) {
-                       doit("install", "-o", 0, "-g", 0, "-m", 755, 
-                            $f, "$tmp/DEBIAN/postinst");
+               # Udebs also support menutest and isinstallable scripts.
+               foreach my $script (qw{postinst menutest isinstallable}) {
+                       my $f=pkgfile($package,$script);
+                       if ($f) {
+                               doit("install", "-o", 0, "-g", 0, "-m", 755, 
+                                    $f, "$tmp/DEBIAN/$script");
+                       }
                }
                next;           
        }