summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg>2009-03-08 17:26:23 +0000
committerjoerg <joerg>2009-03-08 17:26:23 +0000
commit4af73b39597f85414f7dbf89cb84c1d6c3a2e1aa (patch)
tree4526361a1f2f0116e7392b6a1b07df0f4754ef73 /pkgtools
parent0c8e8078e4a485b2d131164e7c9fb08cb25c3d85 (diff)
downloadpkgsrc-4af73b39597f85414f7dbf89cb84c1d6c3a2e1aa.tar.gz
If writing to the archive failed, tell user the file it tried to write.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/create/build.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/create/build.c b/pkgtools/pkg_install/files/create/build.c
index 7469d1ddbbf..3869358ee01 100644
--- a/pkgtools/pkg_install/files/create/build.c
+++ b/pkgtools/pkg_install/files/create/build.c
@@ -1,4 +1,4 @@
-/* $NetBSD: build.c,v 1.10 2009/02/05 16:06:55 joerg Exp $ */
+/* $NetBSD: build.c,v 1.11 2009/03/08 17:26:23 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: build.c,v 1.10 2009/02/05 16:06:55 joerg Exp $");
+__RCSID("$NetBSD: build.c,v 1.11 2009/03/08 17:26:23 joerg Exp $");
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -130,7 +130,8 @@ write_entry(struct archive *archive, struct archive_entry *entry)
}
if (archive_write_header(archive, entry)) {
- errx(2, "cannot write to archive: %s",
+ errx(2, "cannot write %s to archive: %s",
+ archive_entry_pathname(entry),
archive_error_string(archive));
}