summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/outdated.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/outdated.py b/scripts/outdated.py
index a6dd3ef3..ceb02100 100644
--- a/scripts/outdated.py
+++ b/scripts/outdated.py
@@ -40,8 +40,11 @@ for line in p.stdout:
if fields[1] != 'tree' or fields[3] in skip:
continue
name = fields[3]
- with open('pkg/{}/ver'.format(name), 'r') as f:
- oldver = f.read().rsplit(maxsplit=1)[0]
+ try:
+ with open('pkg/{}/ver'.format(name), 'r') as f:
+ oldver = f.read().rsplit(maxsplit=1)[0]
+ except FileNotFoundError:
+ continue
proj = names.get(name, name)
with urllib.request.urlopen('https://repology.org/api/v1/project/{}'.format(proj)) as response:
pkgs = json.loads(response.read())