From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/
Date: Sat, 22 Feb 2014 19:28:49 +0000 (UTC) [thread overview]
Message-ID: <1393096939.29de73337a703bcfe706d8b7df35c92781854ad5.dol-sen@gentoo> (raw)
commit: 29de73337a703bcfe706d8b7df35c92781854ad5
Author: Merlijn Wajer <merlijn <AT> wizzup <DOT> org>
AuthorDate: Sat Feb 22 19:22:19 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sat Feb 22 19:22:19 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=29de7333
Fix the broken import statement for sets.
This udates gentoolkit for the renamed sets module to _sets.
---
pym/gentoolkit/sets.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/pym/gentoolkit/sets.py b/pym/gentoolkit/sets.py
index b9c3601..70315e9 100644
--- a/pym/gentoolkit/sets.py
+++ b/pym/gentoolkit/sets.py
@@ -10,9 +10,11 @@ __docformat__ = 'epytext'
import portage
try:
- import portage.sets
+ # Per commit 25d8427b3b29cbcee97279186983dae818495f8f in portage,
+ # portage.sets is renamed to portage._sets.
+ import portage._sets
_sets_available = True
- SETPREFIX = portage.sets.SETPREFIX
+ SETPREFIX = portage._sets.SETPREFIX
except ImportError:
_sets_available = False
SETPREFIX = "@"
@@ -25,7 +27,7 @@ _set_config = None
def _init_set_config():
global _set_config
if _set_config is None:
- _set_config = portage.sets.load_default_config(
+ _set_config = portage._sets.load_default_config(
portage.settings, portage.db[portage.root])
def get_available_sets():
@@ -50,7 +52,7 @@ def get_set_atoms(setname):
try:
return set([Atom(str(x))
for x in _set_config.getSetAtoms(setname)])
- except portage.sets.PackageSetNotFound:
+ except portage._sets.PackageSetNotFound:
raise errors.GentoolkitSetNotFound(setname)
raise errors.GentoolkitSetNotFound(setname)
next reply other threads:[~2014-02-22 19:28 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-22 19:28 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-02 22:10 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/ Paul Varner
2013-03-12 16:06 Mike Frysinger
2013-01-04 22:23 Paul Varner
2012-12-30 20:25 Brian Dolbec
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-11-13 20:40 Paul Varner
2012-10-09 21:35 Paul Varner
2012-08-01 3:34 Brian Dolbec
2012-07-24 17:18 Paul Varner
2012-05-16 21:18 Paul Varner
2012-03-02 0:01 Brian Dolbec
2011-12-23 6:05 Brian Dolbec
2011-07-16 4:04 Paul Varner
2011-07-16 3:21 Paul Varner
2011-07-15 20:02 Paul Varner
2011-05-23 3:45 Brian Dolbec
2011-05-20 5:54 Brian Dolbec
2011-05-18 21:18 Brian Dolbec
2011-04-18 18:28 Paul Varner
2011-03-31 21:53 Paul Varner
2011-02-23 9:10 Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1393096939.29de73337a703bcfe706d8b7df35c92781854ad5.dol-sen@gentoo \
--to=brian.dolbec@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox