]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installdeb
r1655: * Added udeb support, as pioneered by di-packages-build. Understands
[debhelper.git] / dh_installdeb
index e25e17530fa89696d539bdb83073727db8351680..9832d1020fd30d5a21d3e76283a5bd6676b58b37 100755 (executable)
@@ -52,6 +52,16 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                doit("install","-o",0,"-g",0,"-d","$tmp/DEBIAN");
        }
 
+       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");
+               }
+               next;           
+       }
+       
        # Install debian install scripts.
        # If any .debhelper files exist, add them into the scripts.
        foreach my $file (qw{postinst preinst prerm postrm}) {