]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_gencontrol
r472: * Fixed issues with extended parameters to dh_gencontrol including spaces
[debhelper.git] / dh_gencontrol
index 46f192b64589d5502b0658be66b188cdf678a93b..bb39780cb4dd3369dddf0ba0de4f6b5cf74c511f 100755 (executable)
@@ -19,7 +19,9 @@ dh_gencontrol is a debhelper program that is responsible for generating
 control files, and installing them into the DEBIAN directory with the
 proper permissions.
 
-This program is merely a wrapper around L<dpkg-gencontrol(1)>.
+This program is merely a wrapper around L<dpkg-gencontrol(1)>, which calls
+it once for each package being acted on, and passes in some additional
+useful flags including "-isp".
 
 =head1 OPTIONS
 
@@ -50,9 +52,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                doit("install","-o",0,"-g",0,"-d","$tmp/DEBIAN");
        }
 
-       # Generate and install control file.
+       # Generate and install control file. Use complex_doit to allow for
+       # wild and wonderful U_PARAMS quoting.
        doit("dpkg-gencontrol","-l$changelog","-isp","-p$package",
-               "-Tdebian/${ext}substvars","-P$tmp",@{$dh{U_PARAMS}});
+                    "-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");