[opensuse-packaging] Bug or mystique with set_version
Hi, I've made a package which is fine with rpmbuild -bb at least. But when I try to run "osc build" locally or in OBS the "Version:" string in .spec is changing to "512x512.png" instead of "v1.10.0+git30.3277b64" for example: https://build.opensuse.org/package/show/home:kill_it/geonkick Maybe I missed something obvious, but where? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Apr 08 2020, Konstantin Voinov wrote:
I've made a package which is fine with rpmbuild -bb at least. But when I try to run "osc build" locally or in OBS the "Version:" string in .spec is changing to "512x512.png" instead of "v1.10.0+git30.3277b64"
That's because the tarfile contains a file named geonkick-v1.10.0+git30.3277b64/data/geonkick_512x512.png which matches the regex ".*[-_]([\d][^\/]*).*". Try adjusting the regex parameter of the set_version service. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Oh, thanks a lot. On 2020-04-08 18:38, Andreas Schwab wrote:
On Apr 08 2020, Konstantin Voinov wrote:
I've made a package which is fine with rpmbuild -bb at least. But when I try to run "osc build" locally or in OBS the "Version:" string in .spec is changing to "512x512.png" instead of "v1.10.0+git30.3277b64"
That's because the tarfile contains a file named geonkick-v1.10.0+git30.3277b64/data/geonkick_512x512.png which matches the regex ".*[-_]([\d][^\/]*).*". Try adjusting the regex parameter of the set_version service.
Andreas.
-- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Andreas Schwab
-
Konstantin Voinov