Hard to figure out what version pkgver=9999 packages have
@craftyguy wrote:
the problem with setting pkgver to 9999 is that it's harder to figure out what specific version of a package is installed on the system, right? you can no longer query
apk info
.. you have to look at the apkbuild
True, that is a problem. I can think of two solutions for that:
-
Implement repository pinning (pmbootstrap#1737 (closed)). This is the proper way, but it will be quite some effort.
-
Easy workaround: put the
$_pkgver
(the real package version) into the description:
pkgdesc="[$_pkgver] some description"
@craftyguy also wrote:
I wonder if it would work setting pkgrel to the actual version, so the full 'version' would be something like 9999-1.0.9 (for example)
apk version says this version is invalid (version -c
outputs the invalid version strings):
$ apk version -c 9999-r1 9999-r1.0.9
9999-r1.0.9
What do you think, would you like to make a merge request that puts the $_pkgver in the $pkgdesc?