--fetch-only for it

This commit is contained in:
S.Çağlar Onur
2006-09-30 15:43:02 +00:00
parent 8dd7085659
commit ec2be6d30e
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -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,
+2
View File
@@ -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):