diff options
author | obrien <obrien@FreeBSD.org> | 2004-10-18 05:34:54 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-10-18 05:34:54 +0000 |
commit | a4ca4e84c424f3799326946f6280365009b0dfdd (patch) | |
tree | df2afb569e1312976b45e1b0b802534843dd7857 /usr.sbin/pkg_install/lib | |
parent | be9dd834586bafab7886afb05d8a7acc85e29806 (diff) | |
download | FreeBSD-src-a4ca4e84c424f3799326946f6280365009b0dfdd.zip FreeBSD-src-a4ca4e84c424f3799326946f6280365009b0dfdd.tar.gz |
Add a -q flag to pkg_version. It suppresses the output of <,=,>.
This makes it possible to "portupgrade `pkg_version -q -l '<'`".
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/global.c | 1 | ||||
-rw-r--r-- | usr.sbin/pkg_install/lib/lib.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/global.c b/usr.sbin/pkg_install/lib/global.c index 291f48b..8e94f56 100644 --- a/usr.sbin/pkg_install/lib/global.c +++ b/usr.sbin/pkg_install/lib/global.c @@ -25,6 +25,7 @@ __FBSDID("$FreeBSD$"); #include "lib.h" /* These are global for all utils */ +Boolean Quiet = FALSE; Boolean Verbose = FALSE; Boolean Fake = FALSE; Boolean Force = FALSE; diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h index c50a944..93e4c12 100644 --- a/usr.sbin/pkg_install/lib/lib.h +++ b/usr.sbin/pkg_install/lib/lib.h @@ -224,6 +224,7 @@ int verscmp(Package *, int, int); int version_cmp(const char *, const char *); /* Externs */ +extern Boolean Quiet; extern Boolean Verbose; extern Boolean Fake; extern Boolean Force; |