pmbootstrap/pmb/helpers
Oliver Smith ae1b3fc38c
pmb/helpers/pmaports: ignore provides without ver (!1851)
The APKBUILD reference for "provides" [1] is not worded clearly; but
after reading it over and over again, my understanding is:

* package with provides='foo=1.2' will be automatically installed if
  user requests installing "foo"
* package with provides='foo' (without version) will NOT get
  automatically installed if user requests installing "foo"

For pmbootstrap, this means, that we must not attempt to build a package
where the pkgname mentioned in provides matches what we are currently
resolving, unless there is an equals sign in the provides entry.

Fixes: #1862, pmaports#404

[1] https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#provides says:

"List of package names (and optionally version info) this package
provides.

If package with a version is provided (provides='foo=1.2') apk will
consider it as an alternate name and it will automatically consider the
package for installation by the alternate name, and conflict with other
packages having the same name, or provides.

If version is not provided (provides='foo'), apk will consider it as
virtual package name. Several package with same non-versioned provides
can be installed simultaneously. However, none of them will be installed
by default when requested by the virtual name - instead, error message
is given and user is asked to choose which package providing the virtual
name should be installed."
2020-01-02 17:16:05 +01:00
..
__init__.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
args.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
cli.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
devices.py pmb.config.init: 2-step device selection (!1825) 2019-10-30 22:51:33 +01:00
file.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
frontend.py kconfig check: support passing a file directly (!1802) 2019-08-24 00:10:02 +02:00
git.py Optionally store git hash in /etc/os-release (!1784) 2019-05-10 16:56:26 -04:00
http.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
logging.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
mount.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
other.py Fix crash from mixing 'sudo' with 'du' output (!1777) 2019-04-22 00:00:58 +02:00
package.py repo_missing: don't check arch recursively (!1820) 2019-10-01 10:46:21 +02:00
pkgrel_bump.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
pmaports.py pmb/helpers/pmaports: ignore provides without ver (!1851) 2020-01-02 17:16:05 +01:00
repo.py repo.py: fix downloading too many APKINDEX files (!1764) 2019-03-02 16:28:39 +01:00
repo_missing.py repo_missing: don't check arch recursively (!1820) 2019-10-01 10:46:21 +02:00
run.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
run_core.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
ui.py Update copyright to 2019 2019-01-02 09:31:20 +01:00