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 update(args): """Update the list of new and updated packages""" util.do_update(args.simulate)
def dailyupgrade(args): """Perform an update then a dist-upgrade""" util.do_update(args.simulate) perform.execute("/usr/bin/apt-get --show-upgraded dist-upgrade", root=True, log=True)
def dailyupgrade(args): """Perform an update then a dist-upgrade""" util.do_update(args.simulate) perform.execute("/usr/bin/apt --show-upgraded dist-upgrade", root=True, log=True)