def autodownload(args): """Do an update followed by a download of all updated packages""" util.do_update(args.simulate) command = ("/usr/bin/apt-get --download-only --show-upgraded --assume-yes " "--force-yes dist-upgrade") perform.execute(command, root=True) if not args.simulate: upgradable_packages = util.upgradable() if upgradable_packages: util.do_describe(upgradable_packages, verbose) else: print("no upgradable packages") util.show_package_versions()
def autodownload(args): """Do an update followed by a download of all updated packages""" util.do_update(args.simulate) command = ("/usr/bin/apt-get --download-only --show-upgraded --assume-yes " "--force-yes dist-upgrade") perform.execute(command, root=True) if not args.simulate: upgradable_packages = util.upgradable() if upgradable_packages: util.do_describe(upgradable_packages, args.verbose) else: print("no upgradable packages") util.show_package_versions()
def describe(args): """Display one-line descriptions for the given packages""" util.do_describe(args.packages, args.verbose)