]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_gencontrol
r410: * Added the ability to make debhelper read a different file than
[debhelper.git] / dh_gencontrol
index df53a753e3d86d9a810f741d8c68da61d8b53cd5..0c03dfce2017b5db1d154ced6583f8628519b35d 100755 (executable)
@@ -15,16 +15,17 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        }
 
        if ( ! -d '$TMP/DEBIAN' ) {
-               doit("install","-o","root","-g","root","-d","$TMP/DEBIAN");
+               doit("install","-o",0,"-g",0,"-d","$TMP/DEBIAN");
        }
 
        # Generate and install control file.
-       doit("dpkg-gencontrol","-l$changelog","-isp","-p$PACKAGE",
-               "-Tdebian/$EXT\substvars","-P$TMP",@{$dh{U_PARAMS}});
+       doit("dpkg-gencontrol","-c".Debian::Debhelper::Dh_Lib::getcontrol(),
+               "-l$changelog","-isp","-p$PACKAGE","-Tdebian/${EXT}substvars",
+               "-P$TMP",@{$dh{U_PARAMS}});
 
        # This chmod is only necessary if the user sets the umask to something odd.
        doit("chmod","644","$TMP/DEBIAN/control");
        
-       doit("chown","root.root","$TMP/DEBIAN/control");
+       doit("chown","0.0","$TMP/DEBIAN/control");
 }