forked from Mirror/pmbootstrap
repo_missing: ensure pkgs don't depend on themselves
For some reason, gnome-shell-mobile depends on itself with current resolving code. Ensure this does not happen.
This commit is contained in:
parent
6da1b6d635
commit
35d1a7b1b3
1 changed files with 2 additions and 2 deletions
|
@ -73,11 +73,11 @@ def generate(arch: Arch) -> list[dict[str, list[str] | str | None]]:
|
||||||
if not dep_data:
|
if not dep_data:
|
||||||
logging.warning(f"WARNING: {pkgname}: failed to resolve dependency '{dep}'")
|
logging.warning(f"WARNING: {pkgname}: failed to resolve dependency '{dep}'")
|
||||||
# Can't replace potential subpkgname
|
# Can't replace potential subpkgname
|
||||||
if dep not in depends:
|
if dep != pkgname and dep not in depends:
|
||||||
depends += [dep]
|
depends += [dep]
|
||||||
continue
|
continue
|
||||||
dep_pkgname = dep_data.pkgname
|
dep_pkgname = dep_data.pkgname
|
||||||
if dep_pkgname not in depends:
|
if dep_pkgname != pkgname and dep_pkgname not in depends:
|
||||||
depends += [dep_pkgname]
|
depends += [dep_pkgname]
|
||||||
|
|
||||||
# Add abuild to depends if needed
|
# Add abuild to depends if needed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue