diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-04-18 08:30:05 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-04-18 08:30:05 +0200 |
commit | 0bcd51ef848059359c4a9a37d2ecf3b8efc8bf81 (patch) | |
tree | f7097127c68a3aabd69445de854eb077fa70202a /whatmaps/command.py | |
parent | 73afbae396ca636140d7732eef46994aebbf25bf (diff) |
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.
Diffstat (limited to 'whatmaps/command.py')
-rwxr-xr-x | whatmaps/command.py | 4 |
1 files changed, 3 insertions, 1 deletions
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() |