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/delete Output the error str...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/259b5927715b
branches:  trunk
changeset: 493581:259b5927715b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue May 10 00:04:09 2005 +0000

description:
Output the error string when renaming a dependency file fails. This has
happened to me when I had a misnamed directory in the pkgdb directory.

diffstat:

 pkgtools/pkg_install/files/delete/perform.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 77164cf0b9f5 -r 259b5927715b pkgtools/pkg_install/files/delete/perform.c
--- a/pkgtools/pkg_install/files/delete/perform.c       Tue May 10 00:01:43 2005 +0000
+++ b/pkgtools/pkg_install/files/delete/perform.c       Tue May 10 00:04:09 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.14 2005/02/04 09:10:13 jlam Exp $        */
+/*     $NetBSD: perform.c,v 1.15 2005/05/10 00:04:09 rillig Exp $      */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -11,7 +11,7 @@
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.14 2005/02/04 09:10:13 jlam Exp $");
+__RCSID("$NetBSD: perform.c,v 1.15 2005/05/10 00:04:09 rillig Exp $");
 #endif
 #endif
 
@@ -167,7 +167,7 @@
                return 0;
        }
        if (rename(ftmp, fname) == -1)
-               warnx("error renaming `%s' to `%s'", ftmp, fname);
+               warn("error renaming `%s' to `%s'", ftmp, fname);
        remove(ftmp);           /* just in case */
 
        return 0;



Home | Main Index | Thread Index | Old Index