Permalink
Browse files

Add a --download-only option

Closes: #863859
  • Loading branch information...
1 parent 0546b9d commit 2e5deed4a3ef77fb0dcc02525eb32ed134b98a91 @julian-klode julian-klode committed with rbalint Jul 16, 2017
Showing with 6 additions and 0 deletions.
  1. +6 −0 unattended-upgrade
View
@@ -1330,6 +1330,9 @@ def main(options, rootdir=""):
res = fetcher.run()
logging.debug("fetch.run() result: %s", res)
+ if options.download_only:
+ return
+
if dpkg_conffile_prompt():
# now check the downloaded debs for conffile conflicts and build
# a blacklist
@@ -1538,6 +1541,9 @@ if __name__ == "__main__":
parser.add_option("", "--dry-run",
action="store_true", default=False,
help=_("Simulation, download but do not install"))
+ parser.add_option("", "--download-only",
+ action="store_true", default=False,
+ help=_("Only download, do not even try to install."))
parser.add_option("", "--minimal-upgrade-steps",
action="store_true", default=False,
help=_("Upgrade in minimal steps (and allow "

0 comments on commit 2e5deed

Please sign in to comment.