1 |
Author: zmedico |
2 |
Date: 2008-03-28 12:05:56 +0000 (Fri, 28 Mar 2008) |
3 |
New Revision: 9555 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/bin/pkgname |
7 |
Log: |
8 |
avoid importing portage to improve performance (trunk r9470) |
9 |
|
10 |
|
11 |
Modified: main/branches/2.1.2/bin/pkgname |
12 |
=================================================================== |
13 |
--- main/branches/2.1.2/bin/pkgname 2008-03-28 12:03:21 UTC (rev 9554) |
14 |
+++ main/branches/2.1.2/bin/pkgname 2008-03-28 12:05:56 UTC (rev 9555) |
15 |
@@ -5,13 +5,13 @@ |
16 |
|
17 |
import sys, os |
18 |
try: |
19 |
- import portage |
20 |
+ from portage_versions import pkgsplit |
21 |
except ImportError: |
22 |
from os import path as osp |
23 |
sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) |
24 |
- import portage |
25 |
+ from portage_versions import pkgsplit |
26 |
|
27 |
-a=portage.pkgsplit(sys.argv[1]) |
28 |
+a=pkgsplit(sys.argv[1]) |
29 |
if a: |
30 |
print a[0],a[1],a[2][1:] |
31 |
sys.exit(0) |
32 |
|
33 |
-- |
34 |
gentoo-commits@l.g.o mailing list |