diff options
| author | genone <genone@gentoo.org> | 2004-03-13 11:17:31 +0000 |
|---|---|---|
| committer | genone <genone@gentoo.org> | 2004-03-13 11:17:31 +0000 |
| commit | 82078b0ed488751bc7e5295a8cca9cb9b0bb2275 (patch) | |
| tree | 1c8c8f826a688ee0e33485a15a12351c25e2fd1b /trunk/src/etcat | |
| parent | 6b67b13289bdb7e7f115d93b92b0fa0aa5969f5f (diff) | |
| download | gentoolkit-82078b0ed488751bc7e5295a8cca9cb9b0bb2275.tar.gz | |
Bugfixes for #42160, #40935, #43389
svn path=/; revision=90
Diffstat (limited to 'trunk/src/etcat')
| -rw-r--r-- | trunk/src/etcat/ChangeLog | 3 | ||||
| -rwxr-xr-x | trunk/src/etcat/etcat | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/trunk/src/etcat/ChangeLog b/trunk/src/etcat/ChangeLog index a3b8089..c5fd64d 100644 --- a/trunk/src/etcat/ChangeLog +++ b/trunk/src/etcat/ChangeLog @@ -1,3 +1,6 @@ +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 diff --git a/trunk/src/etcat/etcat b/trunk/src/etcat/etcat index 71afdff..459bd1d 100755 --- a/trunk/src/etcat/etcat +++ b/trunk/src/etcat/etcat @@ -253,8 +253,13 @@ def versions(query, matches): # 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 @@ -292,7 +297,6 @@ def versions(query, matches): 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 | @@ -362,7 +366,7 @@ def uses(query, matches): desc = usedesc[u] except KeyError: try: - desc = uselocaldesc[p][u] + desc = uselocaldesc[p.get_category()+"/"+p.get_name()][u] except KeyError: desc = "" |
