pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/create If writing to the ar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/545f24469ecd
branches:  trunk
changeset: 555769:545f24469ecd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Mar 08 17:26:23 2009 +0000

description:
If writing to the archive failed, tell user the file it tried to write.

diffstat:

 pkgtools/pkg_install/files/create/build.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r bd304b10ebeb -r 545f24469ecd pkgtools/pkg_install/files/create/build.c
--- a/pkgtools/pkg_install/files/create/build.c Sun Mar 08 17:17:02 2009 +0000
+++ b/pkgtools/pkg_install/files/create/build.c Sun Mar 08 17:26:23 2009 +0000
@@ -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@localhost>.
@@ -130,7 +130,8 @@
        }
 
        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));
        }
 



Home | Main Index | Thread Index | Old Index