Skip to content

Commit

Permalink
Add prjconf for adi project
Browse files Browse the repository at this point in the history
to build bit-identical rpms in extra repos
to test easily for reproducible builds
in a to-be-created bot.
  • Loading branch information
bmwiedemann committed Aug 7, 2024
1 parent 7a237ab commit 4f92844
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions osclib/stagingapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,27 @@ def create_adi_project(self, name, use_frozenlinks=False, src_prj=None):
# put twice because on first put, the API adds useless maintainer
http_PUT(url, data=meta)

prjconf = textwrap.dedent("""
# prjconf for testing reproducible builds:
BuildFlags: nodisturl
Release: 1.1
%if %_repository == "rb_future1y"
Support: reproducible-faketools-futurepost
%endif
%if %_repository == "rb_j1"
Support: reproducible-faketools-j1
%endif
Macros:
%distribution reproducible
:Macros
# end of reproducible builds part
""")
url = make_meta_url('prjconf', name, self.apiurl)
http_PUT(url, data=prjconf)

self.register_new_staging_project(name)

if use_frozenlinks:
Expand Down

0 comments on commit 4f92844

Please sign in to comment.