]> git.donarmstrong.com Git - debhelper.git/commitdiff
r412: * Bah, reverted that last change. It isn't useful because
authorjoey <joey>
Sun, 28 Jan 2001 09:52:41 +0000 (09:52 +0000)
committerjoey <joey>
Sun, 28 Jan 2001 09:52:41 +0000 (09:52 +0000)
     dpkg-buildpackage reads the real control file and gets confused.

Debian/Debhelper/Dh_Getopt.pm
Debian/Debhelper/Dh_Lib.pm
debhelper.1
debian/changelog
dh_gencontrol
dh_testdir

index 18157bf0c6eb70172fe00b7af9a7645c1e8b2c5b..6d545e3675d927d9dde8f9ad6ff1528b7b6a0087 100644 (file)
@@ -148,9 +148,9 @@ sub parseopts {
        # packages out, below.
        if (! defined $options{DOPACKAGES} || ! @{$options{DOPACKAGES}}) {
                if ($options{DOINDEP} || $options{DOARCH} || $options{DOSAME}) {
-                               # User specified that all arch (in)dep package be
-                               # built, and there are none of that type.
-                               error("I have no package to build");
+                       # User specified that all arch (in)dep package be
+                       # built, and there are none of that type.
+                       error("I have no package to build");
                }
                push @{$options{DOPACKAGES}},GetPackages();
        }
index 4140642b64a7ff000f8496b0b22a7b3b8c06c6c4..ef924b675474475e574f7b8044407d179347bba9 100644 (file)
@@ -383,10 +383,6 @@ sub filearray {
        }
 }
 
-sub getcontrol {
-       return $ENV{DH_CONTROL} || 'debian/control';
-}
-
 # Returns a list of packages in the control file.
 # Must pass "arch" or "indep" or "same" to specify arch-dependant or
 # -independant or same arch packages. If nothing is specified, returns all
@@ -405,8 +401,8 @@ sub GetPackages {
        my $package="";
        my $arch="";
        my @list=();
-       open (CONTROL, getcontrol()) ||
-               error("cannot read ".getcontrol().": $!\n");
+       open (CONTROL, 'debian/control') ||
+               error("cannot read debian/control: $!\n");
        while (<CONTROL>) {
                chomp;
                s/\s+$//;
index b27bfcfb560977e037994d4f339e2f3064441976..b5902d35a440fd88e11547c6c3333fda0c495cf4 100644 (file)
@@ -250,11 +250,6 @@ run. If you use DH_OPTIONS, be sure to use "dh_testversion 1.1.17" - older
 debhelpers will ignore it and do things you don't want them to. One very
 good way to set DH_OPTIONS is by using "Target-specific Variable Values" in
 your debian/rules file. See the make documentation for details on doing this.
-.TP
-.I DH_CONTROL
-Use the filename contained in this environment variable instead of
-debian/control, for everything debhelper does that involves
-debian/control. If you need this, you know who you are.
 .SH "SEE ALSO"
 .TP
 .BR /usr/share/doc/debhelper/examples/
index 9fdbd42c320124ae792d0f93c785cb3c7e810a12..72d32c39fd3b14400004037d83080030cebdcb2e 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (2.2.16) unstable; urgency=medium
+
+  * Bah, reverted that last change. It isn't useful because
+    dpkg-buildpackage reads the real control file and gets confused.
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 28 Jan 2001 01:47:46 -0800
+
 debhelper (2.2.15) unstable; urgency=medium
 
   * Added the ability to make debhelper read a different file than
index 0c03dfce2017b5db1d154ced6583f8628519b35d..15e082034d6e35fa19d4b9af7ecb8097525c458c 100755 (executable)
@@ -19,9 +19,8 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        }
 
        # Generate and install control file.
-       doit("dpkg-gencontrol","-c".Debian::Debhelper::Dh_Lib::getcontrol(),
-               "-l$changelog","-isp","-p$PACKAGE","-Tdebian/${EXT}substvars",
-               "-P$TMP",@{$dh{U_PARAMS}});
+       doit("dpkg-gencontrol","-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");
index 0bf917ae4c86fb87a33fa811c271176a9b7461d5..394fa35904d75c7eb356a5ef15e13fa2e63afa99 100755 (executable)
@@ -7,7 +7,7 @@
 use Debian::Debhelper::Dh_Lib;
 init();
 
-foreach $file (Debian::Debhelper::Dh_Lib::getcontrol(),@ARGV) {
+foreach $file ('debian/control', @ARGV) {
        if (! -e $file) {
                error("\"$file\" not found. Are you sure you are in the correct directory?");
        }