#1779 RFE: Global level "description_scm" and "description_path" for kiwibuild
Closed: Invalid by lsedlar. Opened by ngompa.

In the Fedora pungi configs, description_scm and description_path is repeated numerous times in the kiwibuild phase, which makes it easy to mess up and miss things at branching time.

Could we please have global ones for these? e.g. kiwibuild_description_scm and kiwibuild_description_path?


kiwibuild_description_scm and kiwibuild_description_path should exist and be available since 4.6.3.

Do we also have kiwibuild_repos too?

Fair point. There's no native support for such option, but it is possible with variable substitution (sort of…).

See https://pagure.io/fork/lsedlar/pungi-fedora/c/79f18333a7a9d8a3f1337e5e3f35d10de910d0d2?branch=simplify-kiwibuild for example. There's a bit of cruft left, but the actual URLs are defined in a single place.

Variable substitution could be taken further though, to the point where updating rawhide to next version is a change in a single place:
https://pagure.io/fork/lsedlar/pungi-fedora/c/3999b43a1b6c349370ddcd1d45447a17d74d19a7?branch=simplify-kiwibuild

The changes can be validated with pungi-config-dump --offline <file> ><file>.json and diffing before/after. The only change is the extra upper case variable. Pungi will warn about unrecognized configuration option, but it won't mind otherwise.

Metadata Update from @lsedlar:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/pungi/pungi/issues/1779

Please continue any further discussion there.

Metadata