[debhelper-devel] [debhelper] 02/03: Dh_Lib: Use bsd_glob in pkgfile

Niels Thykier nthykier at moszumanska.debian.org
Sat Jul 15 19:10:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 2a857147d8e612745c3dfa8a836f4ef3fc3721d3
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Jul 15 16:55:23 2017 +0000

    Dh_Lib: Use bsd_glob in pkgfile
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 Debian/Debhelper/Dh_Lib.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index a5664a8..93cc800 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -661,8 +661,8 @@ sub tmpdir {
 		my (@try, $check_expensive);
 
 		if (not exists($_check_expensive{$filename})) {
-			my @f = glob("debian/*.$filename.*");
-			if (not @f or (@f == 1 and $f[0] eq "debian/*.$filename.*")) {
+			my @f = bsd_glob("debian/*.$filename.*", GLOB_CSH & ~(GLOB_NOMAGIC|GLOB_TILDE));
+			if (not @f) {
 				$check_expensive = 0;
 			} else {
 				$check_expensive = 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list