From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q8RgG-0005CH-4w for garchives@archives.gentoo.org; Sat, 09 Apr 2011 06:30:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEECC1C002; Sat, 9 Apr 2011 06:29:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 779C71C002 for ; Sat, 9 Apr 2011 06:29:52 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F35081B404F for ; Sat, 9 Apr 2011 06:29:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 57FD780065 for ; Sat, 9 Apr 2011 06:29:51 +0000 (UTC) From: "Nirbheek Chauhan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nirbheek Chauhan" Message-ID: Subject: [gentoo-commits] proj/gnome:master commit in: scripts/ X-VCS-Repository: proj/gnome X-VCS-Files: scripts/slot_rindex.py X-VCS-Directories: scripts/ X-VCS-Committer: nirbheek X-VCS-Committer-Name: Nirbheek Chauhan X-VCS-Revision: c43e76d5cd698d08295e9efa1100d9b56cad903d Date: Sat, 9 Apr 2011 06:29:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 31d15491a5368992f3cb4e3ce7a9e3e2 commit: c43e76d5cd698d08295e9efa1100d9b56cad903d Author: Nirbheek Chauhan gentoo org> AuthorDate: Sat Apr 9 06:22:12 2011 +0000 Commit: Nirbheek Chauhan gentoo org> CommitDate: Sat Apr 9 06:23:26 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3Dc43e76d5 slot_rindex.py: handle packages with no rdeps properly --- scripts/slot_rindex.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/scripts/slot_rindex.py b/scripts/slot_rindex.py index f66b599..9816942 100755 --- a/scripts/slot_rindex.py +++ b/scripts/slot_rindex.py @@ -151,7 +151,12 @@ def get_revdeps_rindex(key): import urllib2 RINDEX =3D "http://tinderbox.dev.gentoo.org/misc/rindex" revdeps =3D set() - rdeps_raw =3D urllib2.urlopen('/'.join([RINDEX, key])).read().split(= ) + try: + rdeps_raw =3D urllib2.urlopen('/'.join([RINDEX, key])).read().sp= lit() + except urllib2.HTTPError as e: + if e.getcode() =3D=3D 404: + return revdeps + raise for i in rdeps_raw: cpv =3D i.split(':')[0] if portage.isvalidatom('=3D'+cpv):