summaryrefslogtreecommitdiffstats
path: root/bin/portageq
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-16 16:07:10 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-16 16:07:10 +0000
commitf72beba1fa2c393af7101d45ab8b3614a314874e (patch)
tree63ff56a9236f87646a038f83d91c236f3cce80ef /bin/portageq
parent404f8cbf462c75736c6cdb754bd9550f4c2763fb (diff)
downloadportage-f72beba1fa2c393af7101d45ab8b3614a314874e.tar.gz
portage-f72beba1fa2c393af7101d45ab8b3614a314874e.tar.bz2
portage-f72beba1fa2c393af7101d45ab8b3614a314874e.zip
Various glep 42 fixes, fix up the portageq calls to fail properly, rewrite the news checking code to check news for all repos with a name.
svn path=/main/trunk/; revision=5670
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/portageq b/bin/portageq
index 6485d7c79..aa302555d 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -274,13 +274,20 @@ def get_repos(argv):
"""<root>
Returns all repos with names (repo_name file) argv[0] = $ROOT
"""
+ if len(argv) < 1:
+ print "ERROR: insufficient parameters!"
+ sys.exit(2)
print " ".join(portage.db[argv[0]]["porttree"].dbapi.getRepositories())
def get_repo_path(argv):
- """<root> <repo_id>
+ """<root> <repo_id>+
Returns the path to the repo named argv[1], argv[0] = $ROOT
"""
- print portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(argv[1])
+ if len(argv) < 2:
+ print "ERROR: insufficient parameters!"
+ sys.exit(2)
+ for arg in arvg[1:]
+ print portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(argv[1])
#-----------------------------------------------------------------------------
#