summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-03-28 20:31:54 +0530
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-03-28 20:32:36 +0530
commit3f1a22c12e3f6eb71f4df0a0f0bedfec0cde87a8 (patch)
tree408fbb31374a71e48aee9729cf03efc755afeeaf /scripts
parentmedia-sound/rhythmbox: Fix USE=daap dependencies (diff)
downloadgnome-3f1a22c12e3f6eb71f4df0a0f0bedfec0cde87a8.tar.gz
gnome-3f1a22c12e3f6eb71f4df0a0f0bedfec0cde87a8.tar.bz2
gnome-3f1a22c12e3f6eb71f4df0a0f0bedfec0cde87a8.zip
slot_rindex.py: add option to ignore obsolete ebuilds
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/slot_rindex.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/slot_rindex.py b/scripts/slot_rindex.py
index c77817fa..3ca50dca 100755
--- a/scripts/slot_rindex.py
+++ b/scripts/slot_rindex.py
@@ -33,8 +33,11 @@ if len(sys.argv) < 2:
KEY = sys.argv[1]
PORTAGE_ONLY = False
+IGNORE_OBSOLETE = False
if os.environ.has_key('PORTAGE_ONLY'):
PORTAGE_ONLY = os.environ['PORTAGE_ONLY']
+if os.environ.has_key('IGNORE_OBSOLETE'):
+ IGNORE_OBSOLETE = os.environ['IGNORE_OBSOLETE']
########################
### Output Functions ###
@@ -162,6 +165,10 @@ else:
revdeps = get_revdeps_rindex(KEY)
for rdep in revdeps:
+ if IGNORE_OBSOLETE:
+ from obsolete_ebuilds import get_obsolete
+ if rdep in get_obsolete(portage.pkgsplit(rdep)[0]):
+ continue
(cps, deps) = get_deps_both(rdep)
if KEY not in cps:
continue