From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/grss:master commit in: /
Date: Sun, 5 Jul 2015 16:11:13 +0000 (UTC) [thread overview]
Message-ID: <1436112819.a41470af307df90f2be041900dceeed7114d4b74.blueness@gentoo> (raw)
commit: a41470af307df90f2be041900dceeed7114d4b74
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 5 16:13:39 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jul 5 16:13:39 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=a41470af
make-worldconf: change structure of world.conf.
make-worldconf | 33 ++++++---------------------------
1 file changed, 6 insertions(+), 27 deletions(-)
diff --git a/make-worldconf b/make-worldconf
index 4b962d4..85f63b0 100755
--- a/make-worldconf
+++ b/make-worldconf
@@ -66,8 +66,7 @@ def useflags(config, p):
# Insert nicely sorted flags.
if len(flags) > 0:
flags.sort()
- config[p.slot_atom]['package.use/%s' % re.sub('[/:]', '_', p.slot_atom)] = \
- p.slot_atom + ' ' + ' '.join(flags)
+ config[p.slot_atom]['package.use'] = p.slot_atom + ' ' + ' '.join(flags)
def keywords(config, p):
@@ -84,33 +83,14 @@ def keywords(config, p):
except AttributeError:
pass
if keyword:
- config[p.slot_atom]['package.accept_keywords/%s' % re.sub('[/:]', '_', p.slot_atom)] = \
- '=%s %s' % (p.cpv, keyword)
-
-
-def envvars(config, p):
- fpath = os.path.join(CONST.PORTAGE_CONFIGDIR, 'package.env')
- if os.path.isfile(fpath):
- with open(fpath, 'r') as g:
- for l in g.readlines():
- # This matching needs to be made more strick.
- if re.search('%s' % re.escape(p.cpv_split[1]), l):
- p_slot_atom = re.sub('[/:]', '_', p.slot_atom)
- config[p.slot_atom]['package.env/%s' % p_slot_atom] = \
- '%s %s' % (p.slot_atom, p_slot_atom)
- m = re.search('(\S+)\s+(\S+)', l)
- env_file = os.path.join(CONST.PORTAGE_CONFIGDIR, 'env')
- env_file = os.path.join(env_file, m.group(2))
- with open(env_file, 'r') as h:
- config[p.slot_atom]['env/%s' % p_slot_atom] = h.read()
+ config[p.slot_atom]['package.accept_keywords'] = '=%s %s' % (p.cpv, keyword)
def others(config, p, subdir):
- rpath = '%s/%s' % (subdir, re.sub('[/:]', '_', p.slot_atom))
- fpath = os.path.join(CONST.PORTAGE_CONFIGDIR, rpath)
+ fpath = os.path.join(CONST.PORTAGE_CONFIGDIR, subdir)
if os.path.isfile(fpath):
with open(fpath, 'r') as g:
- config[p.slot_atom][rpath] = g.read()
+ config[p.slot_atom][subdir] = g.read()
def main():
@@ -140,10 +120,9 @@ def main():
# Populate package.accept_keywords - these are read out of p
keywords(config, p)
- # Populate package.env and env/* - these are read out of /etc/portage
- envvars(config, p)
-
# Others - these are read out of /etc/portage
+ others(config, p, 'env')
+ others(config, p, 'package.env')
others(config, p, 'package.mask')
others(config, p, 'package.unmask')
next reply other threads:[~2015-07-05 16:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-05 16:11 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-02 22:06 [gentoo-commits] proj/grss:master commit in: / Anthony G. Basile
2015-08-08 20:26 Anthony G. Basile
2015-08-08 17:52 Anthony G. Basile
2015-08-04 21:41 Anthony G. Basile
2015-08-04 19:32 Anthony G. Basile
2015-08-04 19:25 Anthony G. Basile
2015-07-25 22:06 Anthony G. Basile
2015-07-25 15:32 Anthony G. Basile
2015-07-25 1:51 Anthony G. Basile
2015-07-25 1:24 Anthony G. Basile
2015-07-10 21:13 Anthony G. Basile
2015-07-07 12:38 Anthony G. Basile
2015-07-07 0:41 Anthony G. Basile
2015-07-06 19:57 Anthony G. Basile
2015-07-06 19:49 Anthony G. Basile
2015-07-06 1:39 Anthony G. Basile
2015-07-05 23:56 Anthony G. Basile
2015-07-05 16:33 Anthony G. Basile
2015-07-05 16:20 Anthony G. Basile
2015-07-05 15:19 Anthony G. Basile
2015-07-05 12:40 Anthony G. Basile
2015-07-04 14:13 Anthony G. Basile
2015-07-02 16:51 Anthony G. Basile
2015-07-01 18:12 Anthony G. Basile
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=1436112819.a41470af307df90f2be041900dceeed7114d4b74.blueness@gentoo \
--to=blueness@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