From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/_sets/
Date: Mon, 6 Jun 2011 02:01:15 +0000 (UTC) [thread overview]
Message-ID: <d90686c6b2dff96b883f6e1038e228d2b8351660.zmedico@gentoo> (raw)
commit: d90686c6b2dff96b883f6e1038e228d2b8351660
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 6 02:01:02 2011 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Jun 6 02:01:02 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d90686c6
InternalPackageSet: default allow_repo=True
Repo atoms are allowed more often than not, so it makes sense for this
class to allow them by default. The Atom constructor and isvalidatom()
functions default to allow_repo=False, which is sufficient to ensure
that repo atoms are prohibited when necessary.
---
pym/portage/_sets/base.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/pym/portage/_sets/base.py b/pym/portage/_sets/base.py
index b3bb06b..c8d3ae4 100644
--- a/pym/portage/_sets/base.py
+++ b/pym/portage/_sets/base.py
@@ -1,4 +1,4 @@
-# Copyright 2007-2010 Gentoo Foundation
+# Copyright 2007-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import sys
@@ -228,7 +228,13 @@ class EditablePackageSet(PackageSet):
raise NotImplementedError()
class InternalPackageSet(EditablePackageSet):
- def __init__(self, initial_atoms=None, allow_wildcard=False, allow_repo=False):
+ def __init__(self, initial_atoms=None, allow_wildcard=False, allow_repo=True):
+ """
+ Repo atoms are allowed more often than not, so it makes sense for this
+ class to allow them by default. The Atom constructor and isvalidatom()
+ functions default to allow_repo=False, which is sufficient to ensure
+ that repo atoms are prohibited when necessary.
+ """
super(InternalPackageSet, self).__init__(allow_wildcard=allow_wildcard, allow_repo=allow_repo)
if initial_atoms != None:
self.update(initial_atoms)
next reply other threads:[~2011-06-06 2:01 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 2:01 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-07-21 16:15 [gentoo-commits] proj/portage:master commit in: pym/portage/_sets/ Zac Medico
2011-07-24 1:35 Zac Medico
2011-10-28 7:21 Zac Medico
2012-05-14 0:51 Zac Medico
2012-05-14 1:02 Zac Medico
2012-09-01 4:29 Zac Medico
2012-09-02 20:19 Zac Medico
2012-09-02 22:32 Zac Medico
2012-09-04 20:41 Zac Medico
2012-09-04 20:41 Zac Medico
2012-09-05 20:37 Zac Medico
2012-10-18 2:52 Zac Medico
2012-10-18 3:02 Zac Medico
2012-10-18 3:06 Zac Medico
2012-10-18 3:12 Zac Medico
2014-05-12 10:13 Alexander Berntsen
2014-12-08 0:42 Zac Medico
2014-12-10 20:14 Arfrever Frehtes Taifersar Arahesis
2015-02-11 16:17 Brian Dolbec
2015-02-11 19:11 Brian Dolbec
2015-03-09 19:53 Zac Medico
2015-12-09 4:25 Zac Medico
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=d90686c6b2dff96b883f6e1038e228d2b8351660.zmedico@gentoo \
--to=zmedico@gentoo.org \
--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