[yum-git] cli.py
James Antill
james at linux.duke.edu
Mon Jan 28 19:48:47 UTC 2008
cli.py | 20 --------------------
1 file changed, 20 deletions(-)
New commits:
commit f00ac61a327d4b888bf243adb3e2a33bbadea025
Author: James Antill <james at and.org>
Date: Mon Jan 28 14:48:34 2008 -0500
Move this to a plugin instead.
Revert " Add --tmprepo option, to download .repo files and use them."
This reverts commit 598c1fad3a60dae0e23a524e9159354fd0bca93e.
diff --git a/cli.py b/cli.py
index 4500acd..79d9515 100644
--- a/cli.py
+++ b/cli.py
@@ -44,9 +44,6 @@ from yum.rpmtrans import RPMTransaction
import signal
import yumcommands
-import urlgrabber.grabber
-import tempfile
-
def sigquit(signum, frame):
""" SIGQUIT handler for the yum cli. """
print >> sys.stderr, "Quit signal sent - exiting immediately"
@@ -1035,19 +1032,6 @@ class YumOptionParser(OptionParser):
self.base.usage()
sys.exit(1)
- # Don't use self._splitArg()? ... or require URLs without commas?
- for trepo in self._splitArg(opts.tmp_repos):
- tfo = tempfile.NamedTemporaryFile()
- fname = tfo.name
- grab = urlgrabber.grabber.URLGrabber()
- try:
- grab.urlgrab(trepo, fname)
- except urlgrabber.grabber.URLGrabError, e:
- self.logger.warn("Failed to retrieve " + trepo)
- continue
-
- self.base.getReposFromConfigFile(fname, gpgcheck=True)
-
# setup the progress bars/callbacks
self.base.setupProgressCallbacks()
@@ -1154,10 +1138,6 @@ class YumOptionParser(OptionParser):
metavar='[plugin]')
self.add_option("--skip-broken", action="store_true", dest="skipbroken",
help=_("skip packages with depsolving problems"))
- self.add_option("--tmprepo", action='append',
- type='string', dest='tmp_repos', default=[],
- help=_("enable one or more repositories from URLs"),
- metavar='[url]')
More information about the Yum-cvs-commits
mailing list