From: "J.D. McGregor" <jade_e@perlstorm.net>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] Re: [PATCH] USE aware emerge
Date: Sat, 11 Jan 2003 00:02:55 -0700 (MST) [thread overview]
Message-ID: <Pine.LNX.4.51L0.0301110002250.15602@rake.lotech.org> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 849 bytes --]
May I suggest this minor modification. With the original code, if the
same flag comes up twice as either 'disabled' or 'unset' it gets added as
'enabled', since it fails the string.find() duplicate check, and there's
only a dup check on the fallthrough to 'enabled'. The simple patch
enclosed fixes this.
Other than that, this is a great idea, works well, I'd love to see it
included.
-J.D.
>Well, semi use aware anyway.
>
>What do you think?
>
>
>$ ./emerge -p mozilla
>
>These are the packages that I would merge, in order:
>
>Calculating dependencies ...done!
>[ebuild R ] net-www/mozilla-1.2.1-r4
.
>
>The following USE flags for this action are:
>
>[enabled] java crypt gtk2 ssl gnome
>[disabled] ipv6
>[unset] ldap mozsvg mozcalendar mozaccess mozinterfaceinfo mozp3p
>mozxmlterm moznoirc moznomail moznocompose moznoxft
>
<etc etc etc>
[-- Attachment #2: code diff --]
[-- Type: TEXT/PLAIN, Size: 589 bytes --]
--- /work/portage-2.0.46-r4/bin/emerge.old 2003-01-10 23:45:28.000000000 +0000
+++ /work/portage-2.0.46-r4/bin/emerge 2003-01-10 23:46:20.000000000 +0000
@@ -1571,7 +1571,7 @@
disabled = disabled + purple(y) + " "
elif not y in portage.settings["USE"].split() and string.find(unset, y) < 0:
unset = unset + red(y) + " "
- elif string.find(enabled, y) < 0:
+ elif y in portage.settings["USE"].split() and string.find(enabled, y) < 0:
enabled = enabled + green(y) + " "
print darkgreen("\n\nThe following USE flags for this action are:\n")
[-- Attachment #3: Type: text/plain, Size: 37 bytes --]
--
gentoo-dev@gentoo.org mailing list
next reply other threads:[~2003-01-11 7:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-11 7:02 J.D. McGregor [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-28 20:03 [gentoo-dev] [PATCH] USE aware emerge Martin Svenningsson
2003-01-06 5:34 ` [gentoo-dev] " news.gmane.org.
2003-01-06 21:27 ` Martin Svenningsson
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=Pine.LNX.4.51L0.0301110002250.15602@rake.lotech.org \
--to=jade_e@perlstorm.net \
--cc=gentoo-dev@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