summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-04-09 11:52:12 +0530
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-04-09 11:53:26 +0530
commitc43e76d5cd698d08295e9efa1100d9b56cad903d (patch)
tree70e9fed3b206da805bedbe1d1eb2b41e92bb1461 /scripts
parentMove inherits earlier so they don't override DESCRIPTION (diff)
downloadgnome-c43e76d5cd698d08295e9efa1100d9b56cad903d.tar.gz
gnome-c43e76d5cd698d08295e9efa1100d9b56cad903d.tar.bz2
gnome-c43e76d5cd698d08295e9efa1100d9b56cad903d.zip
slot_rindex.py: handle packages with no rdeps properly
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/slot_rindex.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/slot_rindex.py b/scripts/slot_rindex.py
index f66b599b..98169422 100755
--- a/scripts/slot_rindex.py
+++ b/scripts/slot_rindex.py
@@ -151,7 +151,12 @@ def get_revdeps_rindex(key):
import urllib2
RINDEX = "http://tinderbox.dev.gentoo.org/misc/rindex"
revdeps = set()
- rdeps_raw = urllib2.urlopen('/'.join([RINDEX, key])).read().split()
+ try:
+ rdeps_raw = urllib2.urlopen('/'.join([RINDEX, key])).read().split()
+ except urllib2.HTTPError as e:
+ if e.getcode() == 404:
+ return revdeps
+ raise
for i in rdeps_raw:
cpv = i.split(':')[0]
if portage.isvalidatom('='+cpv):