+2004-03-13 Marius Mauch <genone@gentoo.org>
+ * Added glsa-check and glsa.py, please note:
+ - they are only temporary for testing, so no manpage/ChangeLog
+ - their CVS home is in gentoo-projects
+ * fixed bugs #42160, #40935, #43389
+
2004-02-08 Karl Trygve Kalleberg <karltk@gentoo.org>
* Added ebump
* Added gensync
+2004-03-13 Marius Mauch <genone@gentoo.org>
+ * fixing descriptions for local USE flags
+ * more checking on exceptions
+
2004-01-23 Marius Mauch <genone@gentoo.org>
* now catches Exceptions thrown by portage
* minor bugfixes
desc = usedesc[u]
except KeyError:
try:
- desc = uselocaldesc[p][u]
+ desc = uselocaldesc[p.get_category()+"/"+p.get_name()][u]
except KeyError:
desc = ""
try:
cmd.perform(local_opts)
except KeyError, e:
- if string.find(e[0], "Specific key requires operator") == 0:
+ if e and type(e[0]) == types.ListType and \
+ string.find(e[0], "Specific key requires operator") == 0:
print red("!!!"), "Invalid syntax: missing operator"
print red("!!!"), "If you want only specific versions please use one of"
print red("!!!"), "the following operators as prefix for the package name:"
print red("!!!"), e
sys.exit(2)
except ValueError, e:
- if type(e[0]) == types.ListType:
+ if e and type(e[0]) == types.ListType:
print red("!!!"), "Ambiguous package name \"%s\"" % local_opts[0]
print red("!!!"), "Please use one of the following long names:"
for p in e[0]:
+2004-03-13 Marius Mauch <genone@gentoo.org>
+ - grouping version in --version output
+
2004-01-23 Marius Mauch <genone@gentoo.org>
- now catches exceptions thrown by portage
- minor bugfixes
# FIXME: old version printed result of regex search on name,
# so "ant" would return app-emacs/semantic, etc...
+ last_cp = ""
+
for pkg in matches:
- print green("*") + " " + white(pkg.get_cpv()) + " :"
+ new_cp = pkg.get_category()+"/"+pkg.get_name()
+ if last_cp != new_cp:
+ print green("*") + " " + white(new_cp) + " :"
+ last_cp = new_cp
state = []
color = green
ver = pkg.get_version()
slot = pkg.get_env_var("SLOT")
print " "*8 + "[" + string.join(state,"") + "] " + color(ver) + " (" + color(slot) + ")" + overlay
- print
# .-------------------------------------------------------.
# | List USE flags for a single ebuild, if it's installed |
desc = usedesc[u]
except KeyError:
try:
- desc = uselocaldesc[p][u]
+ desc = uselocaldesc[p.get_category()+"/"+p.get_name()][u]
except KeyError:
desc = ""
if not self._scpv:
raise Exception("invalid cpv: %s" % cpv)
self._db = None
- self._settings = None
+ self._settings = settings.setcpv(self._cpv)
def get_name(self):
"""Returns base name of package, no category nor version"""
return self._scpv[1]