diff options
author | rillig <rillig@pkgsrc.org> | 2005-05-10 00:04:09 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-05-10 00:04:09 +0000 |
commit | a73ab09866a05628dab17d164e28392bde3d183b (patch) | |
tree | 30313d2b2c6b5956138a5d154547f1ddb5d3b8c1 /pkgtools/pkg_install/files | |
parent | c537e2ec1e3a7fa1177b2d9c1dbb0694158c3c69 (diff) | |
download | pkgsrc-a73ab09866a05628dab17d164e28392bde3d183b.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/pkg_install/files')
-rw-r--r-- | pkgtools/pkg_install/files/delete/perform.c | 6 |
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; |