* With --fetch-only you can fetch updated packages at a place which

has a fast connection but you do not need to wait them to be installed.
You can always upgrade anywhere else with the cached packages.
(Onursan's special request)
This commit is contained in:
Faik Uygur
2006-08-24 11:03:13 +00:00
parent 758b0cf179
commit 3a3aa1288d
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -567,6 +567,8 @@ expanded to package names.
default=False, help=_("Ignore file conflicts"))
p.add_option("-e", "--eager", action="store_true",
default=False, help=_("eager upgrades"))
p.add_option("-f", "--fetch-only", action="store_true",
default=False, help=_("Fetch upgrades but do not install."))
def run(self):
self.init()
+4
View File
@@ -468,6 +468,10 @@ def upgrade_pkg_names(A = []):
install_op = atomicoperations.Install.from_name(x)
paths.append(install_op.package_fname)
# fetch to be upgraded packages but do not install them.
if ctx.get_option('fetch_only'):
return
for path in paths:
install_op = atomicoperations.Install(path, ignore_file_conflicts = True)
install_op.install(True)