#1063 Provide package name to custom script provider
Closed: MIGRATED a year ago by nikromen. Opened 4 years ago by till.

In some cases, the custom script to produce sources/specs can be the same for multiple packages except for the package name. For example when rebuilding from CentOS git. Therefore it would be nice to be able to re-use the package name from the package metadata in the script by setting an environment variable such as COPR_PACKAGE for the custom script. It seems that for this it would need to be added to the config.json data to be extracted from there in rpmbuild/copr_rpmbuild/providers/custom.py. It might also be useful to provide other information from the config as environment variables.


All the methods are overloaded, you can submit a build using custom method
(copr at that time doesn't know what is the package name, till the srpm is
generated).

But still, we can provide COPR_PACKAGENAME environment variable when it
already is known.

Metadata Update from @praiskup:
- Issue tagged with: RFE

4 years ago

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

a year ago

Login to comment on this ticket.

Metadata