diff options
-rwxr-xr-x | bin/emerge | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge index d912176b6..f9ea202a1 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2353,8 +2353,10 @@ class depgraph: cpv=cpv, metadata=metadata, built=built, installed=installed, onlydeps=onlydeps) - if installed and want_reinstall: - matched_packages.insert(0, pkg) + if installed and want_reinstall and matched_packages: + # Reject the installed package unless + # there are no other matches. + break else: matched_packages.append(pkg) if reinstall_for_flags: |