From a999d0d6f28395d5f7f0cf1dcbc6626f385e761c Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Tue, 13 Dec 2005 23:03:38 +0000 Subject: [PATCH] Fix USE flag parsing for Bug #115294 svn path=/; revision=267 --- trunk/src/equery/equery | 6 +++--- 1 file 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") + " ]") -- 2.26.2