diff options
| author | solar <solar@gentoo.org> | 2006-08-20 16:04:15 +0000 |
|---|---|---|
| committer | solar <solar@gentoo.org> | 2006-08-20 16:04:15 +0000 |
| commit | 11c22e07c4e253b57302f2dfccb11cbff173cf8c (patch) | |
| tree | 7e91c65a41a2c12b037d5cee248a171f8bbf175b /trunk/src/genpkgindex | |
| parent | c6e550313f27ed69a0e67a1a20d558652bd5434b (diff) | |
| download | gentoolkit-11c22e07c4e253b57302f2dfccb11cbff173cf8c.tar.gz | |
- update genpkgindex to include PDEPEND and PROVIDE
svn path=/; revision=311
Diffstat (limited to 'trunk/src/genpkgindex')
| -rw-r--r-- | trunk/src/genpkgindex/genpkgindex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/src/genpkgindex/genpkgindex b/trunk/src/genpkgindex/genpkgindex index faf6486..c113877 100644 --- a/trunk/src/genpkgindex/genpkgindex +++ b/trunk/src/genpkgindex/genpkgindex @@ -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") |
