openSUSE / obs-service-tar_scm

An OBS source service: fetches code from any SCM and archives it
GNU General Public License v2.0
31 stars 105 forks source link

Allow repository name change via git scm basename paramter #479

Open watologo1 opened 11 months ago

watologo1 commented 11 months ago

Example: https://github.com/DMTF/Redfishtool.git vs network:utilities/redfishtool

In mainline project the first letter 'R' is uppercase, but in OBS it's lowercase.

Adding basename= parameter in _service file with this patch like: main @PARENT_TAG@.@TAG_OFFSET@.g%h enable

results in: redfishtool redfishtool-1.1.7.1.gfaa99dc.obscpio redfishtool-1.1.7.1.gfaa99dc.tar.xz redfishtool.obsinfo

instead of (without basename param): Redfishtool Redfishtool-1.1.7.1.gfaa99dc.obscpio Redfishtool-1.1.7.1.gfaa99dc.tar.xz Redfishtool.obsinfo

With this patch it is possible to adopt or rename any arbitrary git project name to its matching OBS project name and process it via OBS services.