* 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:
@@ -567,6 +567,8 @@ expanded to package names.
|
|||||||
default=False, help=_("Ignore file conflicts"))
|
default=False, help=_("Ignore file conflicts"))
|
||||||
p.add_option("-e", "--eager", action="store_true",
|
p.add_option("-e", "--eager", action="store_true",
|
||||||
default=False, help=_("eager upgrades"))
|
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):
|
def run(self):
|
||||||
self.init()
|
self.init()
|
||||||
|
|||||||
@@ -468,6 +468,10 @@ def upgrade_pkg_names(A = []):
|
|||||||
install_op = atomicoperations.Install.from_name(x)
|
install_op = atomicoperations.Install.from_name(x)
|
||||||
paths.append(install_op.package_fname)
|
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:
|
for path in paths:
|
||||||
install_op = atomicoperations.Install(path, ignore_file_conflicts = True)
|
install_op = atomicoperations.Install(path, ignore_file_conflicts = True)
|
||||||
install_op.install(True)
|
install_op.install(True)
|
||||||
|
|||||||
Reference in New Issue
Block a user