Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=33ab706e8bef841d90d6421110e624b8c24dd8bf
commit 33ab706e8bef841d90d6421110e624b8c24dd8bf
Author: VMiklos <[EMAIL PROTECTED]>
Date: Mon Oct 1 18:24:10 2007 +0200
chkdep: new -q option
diff --git a/chkdep b/chkdep
index 6dfc09a..d40fcfb 100755
--- a/chkdep
+++ b/chkdep
@@ -34,13 +34,14 @@ def rmdupdeps(deps):
return newdeps
def detect_owner(lib):
+ global quiet
if not len(lib):
return
if lib.find(fpmroot) == 0:
return
pkg = pacman.void_to_PM_PKG(pacman.list_getdata(pacman.pkg_getowners(lib)))
owner = pacman.void_to_char(pacman.pkg_getinfo(pkg, pacman.PKG_NAME))
- if not owner:
+ if not owner and not quiet:
print "WARNING: No package found containing %s!" % lib
elif owner not in deps:
deps.append(owner)
@@ -162,9 +163,10 @@ deps = []
dir = None
method="elf"
pkg = None
+quiet = False
try:
- opts, args = getopt.getopt(sys.argv[1:], "d:p:n:m:vi", ["dir=",
"package=", "ignore=", "method=", "version"])
+ opts, args = getopt.getopt(sys.argv[1:], "d:p:qn:m:vi", ["dir=",
"package=", "quiet", "ignore=", "method=", "version"])
except getopt.GetoptError:
usage()
sys.exit(1)
@@ -174,6 +176,8 @@ for opt, arg in opts:
dir = arg
if opt in ("-p", "--package"):
pkg = arg
+ if opt in ("-q", "--quiet"):
+ quiet = True
if opt in ("-m", "--method"):
method = arg
if opt in ("-n", "--name"):
diff --git a/chkdep.txt b/chkdep.txt
index 0f8e98b..9e2a429 100644
--- a/chkdep.txt
+++ b/chkdep.txt
@@ -27,6 +27,9 @@ chkdep [ -d | -p ] <path> [options]
-p, --package <path>::
Name of the FPM package to check.
+-q, --quiet::
+ Don't display any warning.
+
-i::
Does nothing (for backward compatibility).
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git