[pacman-dev] [PATCH] pacman: print version information in debug output
Signed-off-by: Allan McRae <allan@archlinux.org> --- src/pacman/pacman.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 73d5be9..6226ee1 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -857,6 +857,8 @@ int main(int argc, char *argv[]) } } + pm_printf(ALPM_LOG_DEBUG, "pacman v%s - libalpm v%s\n", PACKAGE_VERSION, alpm_version()); + /* parse the config file */ ret = parseconfig(config->configfile); if(ret != 0) { -- 1.7.10.3
On Thu, Jun 07, 2012 at 02:52:18PM +1000, Allan McRae wrote:
Signed-off-by: Allan McRae <allan@archlinux.org> --- src/pacman/pacman.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 73d5be9..6226ee1 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -857,6 +857,8 @@ int main(int argc, char *argv[]) } }
+ pm_printf(ALPM_LOG_DEBUG, "pacman v%s - libalpm v%s\n", PACKAGE_VERSION, alpm_version()); + /* parse the config file */ ret = parseconfig(config->configfile); if(ret != 0) { -- 1.7.10.3
Wouldn't it be better to go one step further and merge the output from -v into --debug? We really don't use -v at all and could just get rid of it.
participants (2)
-
Allan McRae
-
Dave Reisner