]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1774: * dh_install: in v5 mode, error out if there are wildcards in the file
authorjoey <joey>
Tue, 19 Jul 2005 17:49:11 +0000 (17:49 +0000)
committerjoey <joey>
Tue, 19 Jul 2005 17:49:11 +0000 (17:49 +0000)
  list and the wildcards expand to nothing. Done only for v5 as this is a
  behavior change.

debian/changelog
dh_install

index fccb4357ca3cb10a0daf3d4762570f5731ae95ce..a4cc5f5d688675994e08fc80471875c74f3a0003 100644 (file)
@@ -1,3 +1,11 @@
+debhelper (4.9.5) UNRELEASED; urgency=low
+
+  * dh_install: in v5 mode, error out if there are wildcards in the file
+    list and the wildcards expand to nothing. Done only for v5 as this is a
+    behavior change.
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 19 Jul 2005 13:48:52 -0400
+
 debhelper (4.9.4) unstable; urgency=low
 
   * dh_clean: switch to using complex_doit for the evil find command
index d7c4161cb617f0f502d15502077c8f2c5963a31d..4ae155325da8c49d0c819d9a80ec123d2533d9a1 100755 (executable)
@@ -138,7 +138,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                if (! defined $dh{AUTODEST} && @$set > 1) {
                        $dest=pop @$set;
                }
-               # glob now, relative to srcdir
+               if (! compat(4)) { # check added in v5
+                       # glob now, relative to srcdir
+                       if (! map { glob "$srcdir/$_" } @$set) {
+                               error("missing files (@$set), aborting");
+                       }
+               }
                foreach my $src (map { glob "$srcdir/$_" } @$set) { 
                        next if excludefile($src);