--fetch-only for it
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user