From 0bcd51ef848059359c4a9a37d2ecf3b8efc8bf81 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 18 Apr 2016 08:30:05 +0200 Subject: Don't bail out if we can't find a package in apt's cache Rather warn about it and continue so we get restarts for all other packages. --- whatmaps/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'whatmaps/command.py') diff --git a/whatmaps/command.py b/whatmaps/command.py index 0f8e433..263f964 100755 --- a/whatmaps/command.py +++ b/whatmaps/command.py @@ -174,7 +174,9 @@ def main(argv): return 1 if not pkgs: return 0 - pkgs = distro.filter_security_updates(pkgs) + pkgs, notfound = distro.filter_security_updates(pkgs) + if notfound: + logging.warning("Pkgs %s not found in apt cache" % ", ".join(notfound)) logging.debug("Security Upgrades: %s" % pkgs) else: parser.print_help() -- cgit v1.2.3