the agent prints the daemon's version, from the constant the packaging reads

The agent answered --version with "fingerprintd-agent 0.2.2", the string
it was written with, while the daemon's constant went 0.2.3, 0.2.4, 0.2.5:
the subpackage carried the package's version and reported another. The
constant moves from main.cpp into the module both products import, with
its note on what a bump publishes; the two scripts that derive pkgver
from it, the APKBUILD's header and the CI comment name the new file. The
APKBUILD's own pkgver stays a hand-kept copy, which a bump changes too.
This commit is contained in:
Jorijn van der Graaf 2026-10-13 21:55:27 +02:00
commit 51f476e596
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
7 changed files with 21 additions and 14 deletions

View file

@ -124,7 +124,7 @@ int main(int argc, char** argv) {
::setvbuf(stdout, nullptr, _IOLBF, 0);
std::span<char*> args(argv, static_cast<std::size_t>(argc));
for (std::string_view a : args.subspan(1)) {
if (a == "--version") { std::println("fingerprintd-agent 0.2.2"); return 0; }
if (a == "--version") { std::println("fingerprintd-agent {}", fingerprintd::Version); return 0; }
if (a.starts_with("--config=")) g_configPath = a.substr(9);
}
// Root has a session bus about as often as it has a display. Refusing is