Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pkg_install Always echo the command about to be exe...



details:   https://anonhg.NetBSD.org/src/rev/7dcca5255755
branches:  trunk
changeset: 572508:7dcca5255755
user:      agc <agc%NetBSD.org@localhost>
date:      Thu Jan 06 11:59:35 2005 +0000

description:
Always echo the command about to be executed to standard output, not
just when the verbose flag is specified - we are, after all, normally
executing these commands as root.

Bump version to 20050106

diffstat:

 usr.sbin/pkg_install/add/extract.c |  7 +++----
 usr.sbin/pkg_install/lib/plist.c   |  7 +++----
 usr.sbin/pkg_install/lib/version.h |  4 ++--
 3 files changed, 8 insertions(+), 10 deletions(-)

diffs (71 lines):

diff -r d7a0f96ec91f -r 7dcca5255755 usr.sbin/pkg_install/add/extract.c
--- a/usr.sbin/pkg_install/add/extract.c        Thu Jan 06 11:56:39 2005 +0000
+++ b/usr.sbin/pkg_install/add/extract.c        Thu Jan 06 11:59:35 2005 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: extract.c,v 1.33 2004/12/29 11:34:59 agc Exp $ */
+/*     $NetBSD: extract.c,v 1.34 2005/01/06 11:59:35 agc Exp $ */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "FreeBSD - Id: extract.c,v 1.17 1997/10/08 07:45:35 charnier Exp";
 #else
-__RCSID("$NetBSD: extract.c,v 1.33 2004/12/29 11:34:59 agc Exp $");
+__RCSID("$NetBSD: extract.c,v 1.34 2005/01/06 11:59:35 agc Exp $");
 #endif
 #endif
 
@@ -298,8 +298,7 @@
                case PLIST_CMD:
                        format_cmd(cmd, sizeof(cmd), p->name, Directory, last_file);
                        PUSHOUT(Directory);
-                       if (Verbose)
-                               printf("extract: execute '%s'\n", cmd);
+                       printf("Executing '%s'\n", cmd);
                        if (!Fake && system(cmd))
                                warnx("command '%s' failed", cmd);
                        break;
diff -r d7a0f96ec91f -r 7dcca5255755 usr.sbin/pkg_install/lib/plist.c
--- a/usr.sbin/pkg_install/lib/plist.c  Thu Jan 06 11:56:39 2005 +0000
+++ b/usr.sbin/pkg_install/lib/plist.c  Thu Jan 06 11:59:35 2005 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: plist.c,v 1.46 2004/12/29 11:35:03 agc Exp $   */
+/*     $NetBSD: plist.c,v 1.47 2005/01/06 11:59:35 agc Exp $   */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
 #else
-__RCSID("$NetBSD: plist.c,v 1.46 2004/12/29 11:35:03 agc Exp $");
+__RCSID("$NetBSD: plist.c,v 1.47 2005/01/06 11:59:35 agc Exp $");
 #endif
 #endif
 
@@ -356,8 +356,7 @@
                        if (NoDeleteFiles)
                                break;
                        format_cmd(tmp, sizeof(tmp), p->name, Where, last_file);
-                       if (Verbose)
-                               printf("Execute `%s'\n", tmp);
+                       printf("Executing `%s'\n", tmp);
                        if (!Fake && system(tmp)) {
                                warnx("unexec command for `%s' failed", tmp);
                                fail = FAIL;
diff -r d7a0f96ec91f -r 7dcca5255755 usr.sbin/pkg_install/lib/version.h
--- a/usr.sbin/pkg_install/lib/version.h        Thu Jan 06 11:56:39 2005 +0000
+++ b/usr.sbin/pkg_install/lib/version.h        Thu Jan 06 11:59:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: version.h,v 1.61 2004/12/29 11:35:04 agc Exp $ */
+/*     $NetBSD: version.h,v 1.62 2005/01/06 11:59:35 agc Exp $ */
 
 /*
  * Copyright (c) 2001 Thomas Klausner.  All rights reserved.
@@ -33,6 +33,6 @@
 #ifndef _INST_LIB_VERSION_H_
 #define _INST_LIB_VERSION_H_
 
-#define PKGTOOLS_VERSION "20041226"
+#define PKGTOOLS_VERSION "20050106"
 
 #endif /* _INST_LIB_VERSION_H_ */



Home | Main Index | Thread Index | Old Index