Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=c6d074a7b36116b64a896fd8fec43648c6c07f8b

commit c6d074a7b36116b64a896fd8fec43648c6c07f8b
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Tue Dec 4 00:27:41 2007 +0100

chkdep: handle dependency cycles when cleaning up the depends() list
thanks crazy for reporting this issue

diff --git a/chkdep b/chkdep
index c14f513..22a0d1a 100755
--- a/chkdep
+++ b/chkdep
@@ -20,7 +20,8 @@ def rmdupdeps(deps):
while i:
pkg = pacman.void_to_PM_PKG(pacman.list_getdata(i))
pkgname = pacman.void_to_char(pacman.pkg_getinfo(pkg, pacman.PKG_NAME))
-               if pkgname in deps and pkgname not in ignorepkgs:
+               # we don't allow pkgname in depdeps to handle dep cycles
+               if pkgname in deps and pkgname not in depdeps and pkgname not 
in ignorepkgs:
j = pacman.void_to_PM_LIST(pacman.pkg_getinfo(pkg, pacman.PKG_DEPENDS))
while j:
dep = 
pacman.void_to_char(pacman.list_getdata(j)).split("<")[0].split(">")[0].split("=")[0]
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to