From 6477f6d174d1d1e597d93e08b9628ecc920c7c29 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Wed, 19 Sep 2007 18:49:13 +0000 Subject: [PATCH] Fix epkginfo to handle KEYWORDS="". (Bug #193108) svn path=/; revision=446 --- trunk/ChangeLog | 3 +++ trunk/src/epkginfo/epkginfo | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index f9f6f3c..8326a78 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,6 @@ +2007-09-19: Paul Varner + * epkginfo: Fix handling of KEYWORDS="" in an ebuild. (Bug #193108) + 2007-09-18: Paul Varner * equery: Apply patch from Carlo Marcelo Arenas Belon to fix incorrect display of masking status in list command. (Bug #188678) diff --git a/trunk/src/epkginfo/epkginfo b/trunk/src/epkginfo/epkginfo index ba28ad3..0f855e9 100755 --- a/trunk/src/epkginfo/epkginfo +++ b/trunk/src/epkginfo/epkginfo @@ -54,12 +54,14 @@ def earch(workdir): for pkg in ebuildlist: keywords = getvar(pkg, "KEYWORDS") for arch in keywords: + if arch == "": + arch = None archdict[arch] = pkg for pkg in ebuildlist: print darkgreen("Keywords: ") + pkg + ": ", for value,key in archdict.iteritems(): - if (key == pkg): + if (key == pkg and value): if value[0] == "-": print red(value), elif "~" == value[0]: -- 2.26.2