Gentoo Archives: gentoo-commits

From: "André Erdmann" <dywi@×××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/R_overlay:master commit in: /
Date: Wed, 06 Jun 2012 19:53:37
Message-Id: 1339012120.9137204c93a066ed2cce07c5753b815edf6783c5.dywi@gentoo
commit:     9137204c93a066ed2cce07c5753b815edf6783c5
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Wed Jun  6 19:48:40 2012 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Wed Jun  6 19:48:40 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=9137204c

add dependency resolution to run_ebuildcreation.py
	modified:   run_ebuildcreation.py

---
 run_ebuildcreation.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/run_ebuildcreation.py b/run_ebuildcreation.py
index 239ba82..c3d0fc3 100755
--- a/run_ebuildcreation.py
+++ b/run_ebuildcreation.py
@@ -13,9 +13,14 @@ me ( "start" )
 try:
 	from roverlay.ebuildjob import EbuildJob
 	from roverlay.ebuildcreator import EbuildCreator
+	from roverlay.depres import simpledeprule
 
 	ec = EbuildCreator ()
 
+	# todo: EbuildCreator should offer a method to load simple rules
+	testrules = simpledeprule.SimpleDependencyRulePool ( 'test pool', filepath='simple-deprules.conf', priority=25 )
+	ec.depresolve_main.add_rulepool ( testrules )
+
 	for tarball in sys.argv[1:]:
 		sys.stderr.write ( "Adding tarball " + tarball + " to the EbuildCreator.\n" )
 		if ec.add_package ( tarball ) is None: