appstream-generator icon indicating copy to clipboard operation
appstream-generator copied to clipboard

Add git version if running an unreleased version

Open sidt4 opened this issue 1 year ago • 0 comments

From https://appstream.debian.org/logs/2023/10/02_0810.log

2023-10-02 08:10:02 - INFO: AppStream Generator 0.9.1, AS: 0.16.2 [Debian]
2023-10-02 08:10:02 - INFO: Scanning new packages for experimental/main [amd64]

It appears that Debian runs an unreleased ( 0.9.1 ) version for generating appstream. In such cases, it would be useful to print the exact git version along with the AS version, as it would be useful for debugging purposes.

Example:

2023-10-02 08:10:02 - INFO: AppStream Generator 0.9.0 (+git-041fb04), AS: 0.16.2 [Debian]
2023-10-02 08:10:02 - INFO: Scanning new packages for experimental/main [amd64]

2023_10_02_0810.log

sidt4 avatar Oct 03 '23 08:10 sidt4