From 7a61e2fd152ccfd631a693a9f295fe5f3d8e67a6 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 19 Jul 2005 17:49:11 +0000 Subject: [PATCH] r1774: * 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. --- debian/changelog | 8 ++++++++ dh_install | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index fccb435..a4cc5f5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 diff --git a/dh_install b/dh_install index d7c4161..4ae1553 100755 --- a/dh_install +++ b/dh_install @@ -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); -- 2.39.5