Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=149cc0775eb1a5084a0f00b2cb6730f573419a79
commit 149cc0775eb1a5084a0f00b2cb6730f573419a79
Author: VMiklos <[EMAIL PROTECTED]>
Date: Mon Oct 1 18:36:37 2007 +0200
chkdep: handle the case when the lib has undefined references
we usually run chkdep from makepkg where there are no undefined references,
since we just compiled the package. though this may be the case, ie when
rpm2fpm tries to figure out deps
diff --git a/chkdep b/chkdep
index d40fcfb..3f27926 100755
--- a/chkdep
+++ b/chkdep
@@ -42,7 +42,7 @@ def detect_owner(lib):
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 and not quiet:
- print "WARNING: No package found containing %s!" % lib
+ print >>sys.stderr, "WARNING: No package found containing %s!"
% lib
elif owner not in deps:
deps.append(owner)
@@ -101,6 +101,9 @@ class Checks:
if i.find("=>") == -1:
continue
lib = re.sub(r".* => (.*) \(.*", r"\1", i.strip())
+ if ' ' in lib:
+ # not all the deps are installed
+ lib = lib.split(' ')[0]
if len(lib):
libs.append(lib)
sock.close()
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git