Kaydet (Commit) ec2be6d3 authored tarafından S.Çağlar Onur's avatar S.Çağlar Onur

--fetch-only for it

üst 8dd70856
......@@ -94,6 +94,9 @@ class Install(AtomicOperation):
self.pkginfo = self.metadata.package
def install(self, ask_reinstall = True):
if ctx.get_option('fetch_only'):
return
"entry point"
ctx.ui.status(_('Installing %s, version %s, release %s, build %s') %
(self.pkginfo.name, self.pkginfo.version,
......
......@@ -594,6 +594,8 @@ expanded to package names.
default=False, help=_("Reinstall already installed packages"))
group.add_option("--ignore-file-conflicts", action="store_true",
default=False, help=_("Ignore file conflicts"))
group.add_option("-f", "--fetch-only", action="store_true",
default=False, help=_("Fetch upgrades but do not install."))
self.parser.add_option_group(group)
def run(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment