diff options
| author | genone <genone@gentoo.org> | 2004-01-23 05:06:08 +0000 |
|---|---|---|
| committer | genone <genone@gentoo.org> | 2004-01-23 05:06:08 +0000 |
| commit | cb6e7e4786c7c13ab9905fe76f44c943e716a41f (patch) | |
| tree | bcf1b967850d989485503bf33536889c11f00782 /trunk/src/etcat | |
| parent | 82827505fd9bc5e3e86b14ab02ee239372950ab9 (diff) | |
| download | gentoolkit-cb6e7e4786c7c13ab9905fe76f44c943e716a41f.tar.gz | |
extended find_packages to optionally return masked packages
(needed for etcat -v to function properly)
svn path=/; revision=72
Diffstat (limited to 'trunk/src/etcat')
| -rwxr-xr-x | trunk/src/etcat/etcat | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/src/etcat/etcat b/trunk/src/etcat/etcat index 2ef5b9f..e4e03f7 100755 --- a/trunk/src/etcat/etcat +++ b/trunk/src/etcat/etcat @@ -242,10 +242,12 @@ def changes(query, matches): # `-------------------------------------------------------' def versions(query, matches): + # this function should also report masked packages + matches = gentoolkit.find_packages(query, masked=True) if not report_matches(query,matches): return - # sorting result list + # sorting result list matches = gentoolkit.sort_package_list(matches) # FIXME: old version printed result of regex search on name, @@ -651,7 +653,7 @@ def main(): print red("!!!"), " "+p else: print red("!!!"), "Internal portage error, terminating" - if len(e[0])): + if len(e[0]): print red("!!!"), e[0] sys.exit(2) function = globals()[action] |
