[yum-git] repoquery.py
Seth Vidal
skvidal at linux.duke.edu
Fri Feb 15 19:20:48 UTC 2008
repoquery.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit d7ff76aae0f315e74db6cc7ff63420d9b9884223
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Feb 15 14:17:10 2008 -0500
make enablerepo behave like yum enablerepo - not like repoid
diff --git a/repoquery.py b/repoquery.py
index 59dfa83..4e7681b 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -626,7 +626,7 @@ def main(args):
help="show all versions of packages")
parser.add_option("--repoid", action="append",
help="specify repoids to query, can be specified multiple times (default is all enabled)")
- parser.add_option("--enablerepo", action="append", dest="repoid",
+ parser.add_option("--enablerepo", action="append", dest="enablerepos",
help="specify repoids to query, can be specified multiple times (default is all enabled)")
parser.add_option("--disablerepo", action="append", dest="disablerepos",
help="specify repoids to disable, can be specified multiple times")
@@ -778,7 +778,12 @@ def main(args):
for repo_match in opts.disablerepos:
for repo in repoq.repos.findRepos(repo_match):
repo.disable()
-
+
+ if opts.enablerepos:
+ for repo_match in opts.enablerepos:
+ for repo in repoq.repos.findRepos(repo_match):
+ repo.enable()
+
try:
repoq.doRepoSetup()
except yum.Errors.RepoError, e:
More information about the Yum-cvs-commits
mailing list