# Therefore, "selective" logic does not consider
# whether or not an installed package matches an
# argument atom. It only considers whether or not
- # available packages match argument atoms, which is
- # represented by the found_available_arg flag.
- found_available_arg = False
+ # available packages match argument atoms.
for find_existing_node in True, False:
if existing_node:
break
break
if installed and not find_existing_node:
want_reinstall = reinstall or empty or \
- (found_available_arg and not selective)
+ (matched_packages and not selective)
if want_reinstall and matched_packages:
continue
if hasattr(db, "xmatch"):
if not installed:
# masked by corruption
continue
- if not installed and myarg:
- found_available_arg = True
if atom.use and not pkg.built:
use = pkg.use.enabled