[Reproducible-commits] [dpkg] 11/37: dpkg: Print the archive filename when it cannot be accessed

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Jan 31 16:28:39 UTC 2016


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

lunar pushed a commit to branch pu/buildinfo
in repository dpkg.

commit 250d932511216b7d5f03cd317ed696624818e84e
Author: Guillem Jover <guillem at debian.org>
Date:   Mon Jan 18 02:09:03 2016 +0100

    dpkg: Print the archive filename when it cannot be accessed
---
 debian/changelog | 1 +
 src/unpack.c     | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 775aaae..b78fb26 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ dpkg (1.18.5) UNRELEASED; urgency=medium
   * Implement delete operator with size argument in dselect, required by the
     C++14 spec when the size-less delete operator is defined.
   * Use EACCES instead of EWOULDBLOCK for fcntl(2) F_SETLK in dselect.
+  * Print the archive filename when dpkg cannot access it.
   * Perl modules:
     - Add new CTRL_REPO_RELEASE control block type to Dpkg::Control.
     - Add new CTRL_COPYRIGHT_HEADER, CTRL_COPYRIGHT_FILES and
diff --git a/src/unpack.c b/src/unpack.c
index 8cbf506..3e94207 100644
--- a/src/unpack.c
+++ b/src/unpack.c
@@ -541,7 +541,8 @@ void process_archive(const char *filename) {
 
   pfilename = summarize_filename(filename);
 
-  if (stat(filename,&stab)) ohshite(_("cannot access archive"));
+  if (stat(filename, &stab))
+    ohshite(_("cannot access archive '%s'"), filename);
 
   /* We can't ‘tentatively-reassemble’ packages. */
   if (!f_noact) {

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



More information about the Reproducible-commits mailing list