The following commit has been merged in the master branch:
commit d3b995a4d90412d29077c512021df1545acdb7ef
Author: Raphaël Hertzog <[email protected]>
Date:   Sat Nov 19 18:46:32 2011 +0100

    dpkg-gensymbols: output a warning when a pattern doesn't match any file

diff --git a/debian/changelog b/debian/changelog
index 9844d1c..373c6e2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -45,6 +45,9 @@ dpkg (1.16.2) UNRELEASED; urgency=low
     updates. Closes: #642608
     Add libfile-fcntllock-perl to dpkg-dev's Depends since we use this module
     to handle the locking.
+  * Update dpkg-gensymbols(1) to clarify that -e accepts shell patterns
+    expansions and not regular expressions. And let dpkg-gensymbols output a
+    warning when a pattern doesn't match any file. Closes: #649248
 
   [ Jonathan Nieder ]
   * Bump po4a version in Build-Depends to 0.41, since earlier versions do
diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl
index 0fb96c0..a6c73ad 100755
--- a/scripts/dpkg-gensymbols.pl
+++ b/scripts/dpkg-gensymbols.pl
@@ -112,7 +112,10 @@ while (@ARGV) {
        if (-e $file) {
            push @files, $file;
        } else {
-           push @files, glob($file);
+           my @to_add = glob($file);
+           push @files, @to_add;
+           warning(_g("pattern '%s' did not match any file"), $file)
+               unless scalar(@to_add);
        }
     } elsif (m/^-p(.*)/) {
        error(_g("Illegal package name \`%s'"), $1);

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to