diff options
author | 2011-03-23 16:10:15 +0530 | |
---|---|---|
committer | 2011-03-24 03:29:03 +0530 | |
commit | f060e709b2bef5594f458979f8e3a48d0b8cf94a (patch) | |
tree | 12e6893402ec96be880de93f17c7c66b2f975e24 /scripts | |
parent | scripts/slot_rindex2.py: show atom used in ebuild (diff) | |
download | gnome-f060e709b2bef5594f458979f8e3a48d0b8cf94a.tar.gz gnome-f060e709b2bef5594f458979f8e3a48d0b8cf94a.tar.bz2 gnome-f060e709b2bef5594f458979f8e3a48d0b8cf94a.zip |
scripts/obsolete_ebuilds.py: support '.' as an argument
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/obsolete_ebuilds.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/obsolete_ebuilds.py b/scripts/obsolete_ebuilds.py index 558c2d4c..4413cf90 100755 --- a/scripts/obsolete_ebuilds.py +++ b/scripts/obsolete_ebuilds.py @@ -8,6 +8,7 @@ # based on the current keywords # +import os import sys import portage @@ -124,5 +125,7 @@ if __name__ == "__main__": if len(sys.argv) < 2: usage() sys.exit(1) + if sys.argv[1] == '.': + sys.argv[1] = '/'.join((os.path.basename(os.path.dirname(os.getcwd())), os.path.basename(os.getcwd()))) for i in get_obsolete(sys.argv[1]): print portage.catsplit(i)[-1]+'.ebuild', |