summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-05-10 00:04:09 +0000
committerrillig <rillig@pkgsrc.org>2005-05-10 00:04:09 +0000
commitbedb7ffd16df2e2678a91d0d48f2106b7c0778e0 (patch)
tree30313d2b2c6b5956138a5d154547f1ddb5d3b8c1 /pkgtools
parentff77b1d9b3d4f360dc284d4e02d6e05f1d668256 (diff)
downloadpkgsrc-bedb7ffd16df2e2678a91d0d48f2106b7c0778e0.tar.gz
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 (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/delete/perform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/delete/perform.c b/pkgtools/pkg_install/files/delete/perform.c
index 314415cc205..01c9555718c 100644
--- a/pkgtools/pkg_install/files/delete/perform.c
+++ b/pkgtools/pkg_install/files/delete/perform.c
@@ -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 @@ undepend(const char *deppkgname, void *vp)
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;