summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Pontes <otaviobp@gmail.com>2010-08-10 00:20:43 +0000
committerOtavio Pontes <otaviobp@gmail.com>2010-08-10 00:20:43 +0000
commitd37836e51ef63963dc56a30eedae521b29cbadd9 (patch)
tree20955e89ab24ad94ed94ddb6309b2a7fdf5d5208 /bin/repoman
parentRevert "Fixing portage bug. If more than one line in package.license is used ... (diff)
parentFix /etc/portage/package.keywords handling so that more specific (diff)
downloadportage-multirepo-d37836e51ef63963dc56a30eedae521b29cbadd9.tar.gz
portage-multirepo-d37836e51ef63963dc56a30eedae521b29cbadd9.tar.bz2
portage-multirepo-d37836e51ef63963dc56a30eedae521b29cbadd9.zip
Merge branch 'master' of git://git.overlays.gentoo.org/proj/portage
Conflicts: pym/_emerge/depgraph.py pym/portage/package/ebuild/config.py pym/portage/package/ebuild/getmaskingstatus.py
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman20
1 files changed, 14 insertions, 6 deletions
diff --git a/bin/repoman b/bin/repoman
index 53b9ad0c..0115c288 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -21,8 +21,6 @@ import sys
import tempfile
import time
import platform
-import xml.etree.ElementTree
-from xml.parsers.expat import ExpatError
try:
from urllib.request import urlopen as urllib_request_urlopen
@@ -32,9 +30,6 @@ except ImportError:
from itertools import chain
from stat import S_ISDIR
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
-
try:
import portage
except ImportError:
@@ -42,6 +37,18 @@ except ImportError:
sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
import portage
portage._disable_legacy_globals()
+
+try:
+ import xml.etree.ElementTree
+ from xml.parsers.expat import ExpatError
+except ImportError:
+ msg = ["Please enable python's \"xml\" USE flag in order to use repoman."]
+ from portage.output import EOutput
+ out = EOutput()
+ for line in msg:
+ out.eerror(line)
+ sys.exit(1)
+
from portage import os
from portage import subprocess_getstatusoutput
from portage import _encodings
@@ -328,7 +335,7 @@ qahelp={
"IUSE.undefined":"This ebuild does not define IUSE (style guideline says to define IUSE even when empty)",
"LICENSE.invalid":"This ebuild is listing a license that doesnt exist in portages license/ dir.",
"KEYWORDS.invalid":"This ebuild contains KEYWORDS that are not listed in profiles/arch.list or for which no valid profile was found",
- "RDEPEND.implicit":"RDEPEND is unset in the ebuild which triggers implicit RDEPEND=$DEPEND assignment",
+ "RDEPEND.implicit":"RDEPEND is unset in the ebuild which triggers implicit RDEPEND=$DEPEND assignment (prior to EAPI 4)",
"RDEPEND.suspect":"RDEPEND contains a package that usually only belongs in DEPEND.",
"RESTRICT.invalid":"This ebuild contains invalid RESTRICT values.",
"digest.assumed":"Existing digest must be assumed correct (Package level only)",
@@ -339,6 +346,7 @@ qahelp={
"ebuild.majorsyn":"This ebuild has a major syntax error that may cause the ebuild to fail partially or fully",
"ebuild.minorsyn":"This ebuild has a minor syntax error that contravenes gentoo coding style",
"ebuild.badheader":"This ebuild has a malformed header",
+ "eprefixify.defined":"The ebuild uses eprefixify, but does not inherit the prefix eclass",
"manifest.bad":"Manifest has missing or incorrect digests",
"metadata.missing":"Missing metadata.xml files",
"metadata.bad":"Bad metadata.xml files",