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/info Be silent if querying ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fefe4502ffaa
branches:  trunk
changeset: 555195:fefe4502ffaa
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Feb 25 20:52:10 2009 +0000

description:
Be silent if querying a variable and no installed information exists.
"pkg_info -Q automatic foo" should not bitch.

diffstat:

 pkgtools/pkg_install/files/info/perform.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 5f54dc6514cf -r fefe4502ffaa pkgtools/pkg_install/files/info/perform.c
--- a/pkgtools/pkg_install/files/info/perform.c Wed Feb 25 20:51:11 2009 +0000
+++ b/pkgtools/pkg_install/files/info/perform.c Wed Feb 25 20:52:10 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.51 2009/02/13 11:21:07 joerg Exp $       */
+/*     $NetBSD: perform.c,v 1.52 2009/02/25 20:52:10 joerg Exp $       */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -13,7 +13,7 @@
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
-__RCSID("$NetBSD: perform.c,v 1.51 2009/02/13 11:21:07 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.52 2009/02/25 20:52:10 joerg Exp $");
 
 /*-
  * Copyright (c) 2008 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -362,8 +362,6 @@
                    == strlen(BuildInfoVariable)) {
                        if (meta->meta_installed_info)
                                show_var(meta->meta_installed_info, BuildInfoVariable);
-                       else
-                               warnx("Installation information missing");
                } else {
                        if (meta->meta_build_info)
                                show_var(meta->meta_build_info, BuildInfoVariable);



Home | Main Index | Thread Index | Old Index