diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-03-28 12:05:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-03-28 12:05:56 +0000 |
commit | 3409b9c16afd9ff63864a1e96005fc5f0bec7027 (patch) | |
tree | 423afbaba02d91511b4857ed867bf2d795e936ac /bin/pkgname | |
parent | 71c85df7504ec011a81999e9e787e55a217b20d2 (diff) | |
download | portage-3409b9c16afd9ff63864a1e96005fc5f0bec7027.tar.gz portage-3409b9c16afd9ff63864a1e96005fc5f0bec7027.tar.bz2 portage-3409b9c16afd9ff63864a1e96005fc5f0bec7027.zip |
avoid importing portage to improve performance (trunk r9470)
svn path=/main/branches/2.1.2/; revision=9555
Diffstat (limited to 'bin/pkgname')
-rwxr-xr-x | bin/pkgname | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pkgname b/bin/pkgname index 4c0dd6c94..e34b3268e 100755 --- a/bin/pkgname +++ b/bin/pkgname @@ -5,13 +5,13 @@ import sys, os try: - import portage + from portage_versions import pkgsplit except ImportError: from os import path as osp sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) - import portage + from portage_versions import pkgsplit -a=portage.pkgsplit(sys.argv[1]) +a=pkgsplit(sys.argv[1]) if a: print a[0],a[1],a[2][1:] sys.exit(0) |