* [gentoo-commits] proj/portage:master commit in: pym/portage/_sets/, bin/, pym/portage/, pym/_emerge/
@ 2013-11-30 5:35 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2013-11-30 5:35 UTC (permalink / raw
To: gentoo-commits
commit: 25ce074611a6c7ac2b80f0e525d3ab91e822ed93
Author: Sebastian Luther <SebastianLuther <AT> gmx <DOT> de>
AuthorDate: Fri Nov 29 20:33:31 2013 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Nov 30 05:21:59 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=25ce0746
portage.const: move list of live eclasses here
---
bin/repoman | 11 +----------
pym/_emerge/EbuildExecuter.py | 11 +----------
pym/portage/_sets/__init__.py | 2 +-
pym/portage/const.py | 12 ++++++++++++
4 files changed, 15 insertions(+), 21 deletions(-)
diff --git a/bin/repoman b/bin/repoman
index 63558fa..d1542e9 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -424,16 +424,7 @@ valid_restrict = frozenset(["binchecks", "bindist",
"fetch", "installsources", "mirror", "preserve-libs",
"primaryuri", "splitdebug", "strip", "test", "userpriv"])
-live_eclasses = frozenset([
- "bzr",
- "cvs",
- "darcs",
- "git",
- "git-2",
- "mercurial",
- "subversion",
- "tla",
-])
+live_eclasses = portage.const.LIVE_ECLASSES
suspect_rdepend = frozenset([
"app-arch/cabextract",
diff --git a/pym/_emerge/EbuildExecuter.py b/pym/_emerge/EbuildExecuter.py
index cfbc90d..5587d4e 100644
--- a/pym/_emerge/EbuildExecuter.py
+++ b/pym/_emerge/EbuildExecuter.py
@@ -16,16 +16,7 @@ class EbuildExecuter(CompositeTask):
_phases = ("prepare", "configure", "compile", "test", "install")
- _live_eclasses = frozenset([
- "bzr",
- "cvs",
- "darcs",
- "git",
- "git-2",
- "mercurial",
- "subversion",
- "tla",
- ])
+ _live_eclasses = portage.const.LIVE_ECLASSES
def _start(self):
pkg = self.pkg
diff --git a/pym/portage/_sets/__init__.py b/pym/portage/_sets/__init__.py
index a545dba..75d1df7 100644
--- a/pym/portage/_sets/__init__.py
+++ b/pym/portage/_sets/__init__.py
@@ -140,7 +140,7 @@ class SetConfig(object):
parser.add_section("live-rebuild")
parser.set("live-rebuild", "class", "portage.sets.dbapi.VariableSet")
parser.set("live-rebuild", "variable", "INHERITED")
- parser.set("live-rebuild", "includes", "bzr cvs darcs git git-2 mercurial subversion tla")
+ parser.set("live-rebuild", "includes", " ".join(sorted(portage.const.LIVE_ECLASSES)))
parser.remove_section("module-rebuild")
parser.add_section("module-rebuild")
diff --git a/pym/portage/const.py b/pym/portage/const.py
index b2e970e..185867a 100644
--- a/pym/portage/const.py
+++ b/pym/portage/const.py
@@ -174,6 +174,18 @@ if "PORTAGE_OVERRIDE_EPREFIX" in os.environ:
VCS_DIRS = ("CVS", "RCS", "SCCS", ".bzr", ".git", ".hg", ".svn")
+# List of known live eclasses. Keep it in sync with cnf/sets/portage.conf
+LIVE_ECLASSES = frozenset([
+ "bzr",
+ "cvs",
+ "darcs",
+ "git",
+ "git-2",
+ "mercurial",
+ "subversion",
+ "tla",
+])
+
SUPPORTED_BINPKG_FORMATS = ("tar", "rpm")
# Time formats used in various places like metadata.chk.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-30 5:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-30 5:35 [gentoo-commits] proj/portage:master commit in: pym/portage/_sets/, bin/, pym/portage/, pym/_emerge/ Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox