- update genpkgindex to include PDEPEND and PROVIDE
authorsolar <solar@gentoo.org>
Sun, 20 Aug 2006 16:04:15 +0000 (16:04 -0000)
committersolar <solar@gentoo.org>
Sun, 20 Aug 2006 16:04:15 +0000 (16:04 -0000)
svn path=/; revision=311

trunk/src/genpkgindex/genpkgindex

index faf6486c202a97108393d0c3f303faf1d38c7a54..c113877d7cca3bc69469bf39f7e64182c92cda65 100644 (file)
@@ -105,15 +105,17 @@ for cat, pkg, tbz2, stuff in packages:
                                        fp.write("DESC: "+line+"\n")
                                        break
 
-       for name in [ "PF", "CATEGORY", "LICENSE", "RDEPEND" , "SLOT"]:
+       for name in [ "PF", "CATEGORY", "LICENSE", "RDEPEND", "PDEPEND", "PROVIDE", "SLOT" ]:
                item = xpak.getitem(stuff, name)
                if (item != None) and item:
-                       if name == "RDEPEND":
+                       if name == "RDEPEND" or name == "PDEPEND":
                                val = string.strip(string.join(portage.flatten(portage_dep.use_reduce(portage_dep.paren_reduce(item), uselist=use.split())),' '))
                                if val:
                                        fp.write(name+": " + string.join(val.split()) + "\n")
                        else:
                                val = string.strip(str(item))
+                               if not len(val):
+                                       continue
                                if name == "SLOT":
                                        if (val != "0"):
                                                fp.write(name + ": " + val + "\n")