diff options
| author | genone <genone@gentoo.org> | 2004-01-09 00:49:14 +0000 |
|---|---|---|
| committer | genone <genone@gentoo.org> | 2004-01-09 00:49:14 +0000 |
| commit | 582d0edfcd786433b8edf70c47274f54fa031003 (patch) | |
| tree | 534a35048b1aab84319bf27b7850190613c05aec /trunk/src/etcat | |
| parent | 87ef9f7d6d1ca25bdef99798e819d335d16faac1 (diff) | |
| download | gentoolkit-582d0edfcd786433b8edf70c47274f54fa031003.tar.gz | |
3rd try, bugfixes, cleanups and a little new feature
svn path=/; revision=52
Diffstat (limited to 'trunk/src/etcat')
| -rwxr-xr-x | trunk/src/etcat/etcat | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/trunk/src/etcat/etcat b/trunk/src/etcat/etcat index 7c3737c..5368f09 100755 --- a/trunk/src/etcat/etcat +++ b/trunk/src/etcat/etcat @@ -42,6 +42,9 @@ # # --| Changes |------------------------------------------------------ # +# * etcat-0.3.1 (08 Jan 2004) [genone] +# - adding missing python searchpath modification +# - fixing sort order # * etcat-0.3.0 (12 Jul 2003) [karltk] # - Refactored interesting stuff into the Gentoolkit module # * etcat-0.2.0 (13 Jun 2003) @@ -77,23 +80,22 @@ import os,sys,string,re,pprint import getopt,glob + +# portage and gentoolkit need special path modifications +sys.path.insert(0, "/usr/lib/portage/pym") +sys.path.insert(0, "/usr/lib/gentoolkit/pym") + import gentoolkit from stat import * from output import * __author__ = "Alastair Tse" __email__ = "liquidx@gentoo.org" -__version__ = "0.2.0" +__version__ = "0.3.1" __productname__ = "etcat" __description__ = "Portage Information Extractor" # .-------------------------------------------------------. -# | Initialise Paths | -# `-------------------------------------------------------' - -sys.path = ["/usr/lib/portage/pym"] + sys.path - -# .-------------------------------------------------------. # | Initialise Colour Settings | # `-------------------------------------------------------' if (not sys.stdout.isatty()) or (gentoolkit.settings["NOCOLOR"] in ["yes","true"]): @@ -230,6 +232,9 @@ def versions(query): if not report_matches(query,matches): return + # sorting result list + matches = gentoolkit.sort_package_list(matches) + # FIXME: old version printed result of regex search on name, # so "ant" would return app-emacs/semantic, etc... |
