summaryrefslogtreecommitdiff
path: root/trunk/src/glsa-check
diff options
context:
space:
mode:
authorantarus <antarus@gentoo.org>2007-04-01 05:13:21 +0000
committerantarus <antarus@gentoo.org>2007-04-01 05:13:21 +0000
commit9a327677f6984ca6e2ec73846e10549fd81595e2 (patch)
treec6209b99a2e616cc9091185ab99df1cf5701b035 /trunk/src/glsa-check
parented8b48359ddb4b2723433cb732b59811bd921cc0 (diff)
downloadgentoolkit-9a327677f6984ca6e2ec73846e10549fd81595e2.tar.gz
Add support for new-style imports while keeping support for old imports as a fallback
svn path=/; revision=382
Diffstat (limited to 'trunk/src/glsa-check')
-rw-r--r--trunk/src/glsa-check/glsa-check7
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check
index fedba47..6d2a11b 100644
--- a/trunk/src/glsa-check/glsa-check
+++ b/trunk/src/glsa-check/glsa-check
@@ -7,7 +7,12 @@ import os
import sys
sys.path.insert(0, "/usr/lib/gentoolkit/pym")
sys.path.insert(0, "/usr/lib/portage/pym")
-from output import *
+
+try:
+ from portage.output import *
+except ImportError:
+ from output import *
+
from getopt import getopt,GetoptError
__program__ = "glsa-check"