1 |
Author: zmedico |
2 |
Date: 2008-03-31 21:07:29 +0000 (Mon, 31 Mar 2008) |
3 |
New Revision: 9652 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/_emerge/__init__.py |
7 |
Log: |
8 |
Fix package selection logic to always properly reject the installed package |
9 |
when another is available and the user wants to reinstall. |
10 |
|
11 |
|
12 |
Modified: main/trunk/pym/_emerge/__init__.py |
13 |
=================================================================== |
14 |
--- main/trunk/pym/_emerge/__init__.py 2008-03-31 20:26:26 UTC (rev 9651) |
15 |
+++ main/trunk/pym/_emerge/__init__.py 2008-03-31 21:07:29 UTC (rev 9652) |
16 |
@@ -2706,8 +2706,10 @@ |
17 |
cpv=cpv, metadata=metadata, |
18 |
built=built, installed=installed, |
19 |
onlydeps=onlydeps) |
20 |
- if installed and want_reinstall: |
21 |
- matched_packages.insert(0, pkg) |
22 |
+ if installed and want_reinstall and matched_packages: |
23 |
+ # Reject the installed package unless |
24 |
+ # there are no other matches. |
25 |
+ break |
26 |
else: |
27 |
matched_packages.append(pkg) |
28 |
if reinstall_for_flags: |
29 |
|
30 |
-- |
31 |
gentoo-commits@l.g.o mailing list |