diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2005-12-13 23:03:38 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2005-12-13 23:03:38 +0000 |
| commit | a999d0d6f28395d5f7f0cf1dcbc6626f385e761c (patch) | |
| tree | 72fe63cf8adc9fb0c66696ecafec3a6aabcba8e3 /trunk/src/equery | |
| parent | cad583a72971ea35fc46612883ab229656cd4cfa (diff) | |
| download | gentoolkit-a999d0d6f28395d5f7f0cf1dcbc6626f385e761c.tar.gz | |
Fix USE flag parsing for Bug #115294
svn path=/; revision=267
Diffstat (limited to 'trunk/src/equery')
| -rwxr-xr-x | trunk/src/equery/equery | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 0945cf8..3a7099d 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -467,7 +467,7 @@ class CmdDisplayUSEs(Command): for line in fd.readlines(): if line[0] == "#": continue - fields = line.split(" - ") + fields = line.split(" - ", 1) if len(fields) == 2: usedesc[fields[0].strip()] = fields[1].strip() except IOError: @@ -479,7 +479,7 @@ class CmdDisplayUSEs(Command): for line in fd.readlines(): if line[0] == "#": continue - fields = line.split(" - ") + fields = line.split(" - ", 1) if len(fields) == 2: catpkguse = re.search("(.*):(.*)", fields[0]) if catpkguse: @@ -488,7 +488,7 @@ class CmdDisplayUSEs(Command): else: uselocaldesc[catpkguse.group(1).strip()][catpkguse.group(2).strip()] = fields[1].strip() except IOError: - print_warn(5, "Could not load USE flag descriptions from " + path(gentoolkit.settings["PORTDIR"] + "/profiles/use.desc")) + print_warn(5, "Could not load USE flag descriptions from " + path(gentoolkit.settings["PORTDIR"] + "/profiles/use.local.desc")) if not Config["piping"] and Config["verbosityLevel"] >= 3: print_info(3, "[ Colour Code : " + pp.useflagon("set") + " " + pp.useflagoff("unset") + " ]") |
