Skip to content

Commit

Permalink
seelct_package
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamesam committed Jan 17, 2024
1 parent c393bc9 commit 9665c1e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions lib/_emerge/depgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5286,6 +5286,7 @@ def _resolve(self, myfavorites):
for atom in sorted(arg.pset.getAtoms()):
self._spinner_update()
dep = Dependency(atom=atom, onlydeps=onlydeps, root=myroot, parent=arg)
fixedup_pkgmove = False
try:
pprovided = pprovideddict.get(atom.cp)
if pprovided and portage.match_from_list(atom, pprovided):
Expand Down Expand Up @@ -5318,26 +5319,20 @@ def _resolve(self, myfavorites):
)

if pkg:
atom = Atom(atom.replace(atom.cp, pkg.cp))

if not self._add_pkg(pkg, dep):
writemsg(
f"\n\n!!! Problem resolving dependencies for {arg.arg=}, {arg.atom=}\n",
noiselevel=-1,
)
return False, myfavorites
fixedup_pkgmove = True
atom = Atom(f"{atom.replace(atom.cp, pkg.cp)}")
arg = pkg.slot_atom

if debug:
writemsg_level(
f"\n Arg: {arg}\n Atom: {atom}\n",
noiselevel=-1,
level=logging.DEBUG,
)

pkg, existing_node = self._select_package(
myroot, atom, onlydeps=onlydeps
)
if not arg:
arg = AtomArg(pkg.slot_atom)

# Is the package installed (at any version)?
if pkg and "update_if_installed" in self._dynamic_config.myparams:
Expand Down Expand Up @@ -5409,6 +5404,7 @@ def _resolve(self, myfavorites):
if (
pkg.installed
and "selective" not in self._dynamic_config.myparams
and not fixedup_pkgmove
and not self._frozen_config.excluded_pkgs.findAtomForPackage(
pkg, modified_use=self._pkg_use_enabled(pkg)
)
Expand Down

0 comments on commit 9665c1e

Please sign in to comment.