Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13521 - main/branches/2.1.6/pym/_emerge
Date: Thu, 30 Apr 2009 07:19:35
Message-Id: E1LzQYP-0000gY-Ld@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-04-30 07:19:32 +0000 (Thu, 30 Apr 2009)
3 New Revision: 13521
4
5 Modified:
6 main/branches/2.1.6/pym/_emerge/__init__.py
7 Log:
8 Add --ask support to action_deselect(). (trunk r13365)
9
10 Modified: main/branches/2.1.6/pym/_emerge/__init__.py
11 ===================================================================
12 --- main/branches/2.1.6/pym/_emerge/__init__.py 2009-04-30 07:19:22 UTC (rev 13520)
13 +++ main/branches/2.1.6/pym/_emerge/__init__.py 2009-04-30 07:19:32 UTC (rev 13521)
14 @@ -13911,6 +13911,13 @@
15 for atom in sorted(discard_atoms):
16 print ">>> Removing %s from \"world\" favorites file..." % \
17 colorize("INFORM", str(atom))
18 +
19 + if '--ask' in opts:
20 + prompt = "Would you like to remove these " + \
21 + "packages from your world favorites?"
22 + if userquery(prompt) == 'No':
23 + return os.EX_OK
24 +
25 remaining = set(world_set)
26 remaining.difference_update(discard_atoms)
27 if not pretend: