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

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=e8ffa0552b5600f18c06702c16033f0bcb1b1e11

commit e8ffa0552b5600f18c06702c16033f0bcb1b1e11
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jan 28 23:20:09 2020 +0100

    Dpkg::Dist::Files: On filename parse error say file instead of package
---
 debian/changelog           | 1 +
 scripts/Dpkg/Dist/Files.pm | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ebc981273..4f54438ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -99,6 +99,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
       Closes: #932841
     - Dpkg::Exit: Register exit handlers also for __DIE__.
     - Dpkg::Source::Package::V3::Native: Do not say v1.0 for 3.0 formats.
+    - Dpkg::Dist::Files: On filename parse error say file instead of package.
   * Documentation:
     - man: Fix uncommon wording constructs.
     - man: Use a minus sign for a literal string.
diff --git a/scripts/Dpkg/Dist/Files.pm b/scripts/Dpkg/Dist/Files.pm
index 28f9d9a7a..8ae5a3251 100644
--- a/scripts/Dpkg/Dist/Files.pm
+++ b/scripts/Dpkg/Dist/Files.pm
@@ -83,7 +83,7 @@ sub parse {
 
         if (m/^(\S+) (\S+) (\S+)((?:\s+[0-9a-z-]+=\S+)*)$/) {
             $file = $self->parse_filename($1);
-            error(g_('badly formed package name in files list file, line %d'), 
$.)
+            error(g_('badly formed file name in files list file, line %d'), $.)
                 unless defined $file;
             $file->{section} = $2;
             $file->{priority} = $3;

-- 
Dpkg.Org's dpkg

Reply via email to