Skip to content

Commit f29bb45

Browse files
committed
Add prjconf for adi project
to build bit-identical rpms in extra repos to test easily for reproducible builds in a to-be-created bot.
1 parent 57e2b42 commit f29bb45

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

osclib/stagingapi.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,26 @@ def create_adi_project(self, name, use_frozenlinks=False, src_prj=None):
14671467
http_PUT(url, data=meta)
14681468
# put twice because on first put, the API adds useless maintainer
14691469
http_PUT(url, data=meta)
1470+
prjconf = textwrap.dedent("""
1471+
# prjconf for testing reproducible builds:
1472+
BuildFlags: nodisturl
1473+
Release: 1.1
1474+
1475+
%if %_repository == "rb_future1y"
1476+
VMinstall: reproducible-faketools-futurepost
1477+
%endif
1478+
1479+
%if %_repository == "rb_j1"
1480+
VMinstall: reproducible-faketools-j1
1481+
%endif
1482+
1483+
Macros:
1484+
%distribution reproducible
1485+
:Macros
1486+
# end of reproducible builds part
1487+
""")
1488+
url = make_meta_url('prjconf', name, self.apiurl)
1489+
http_PUT(url, data=prjconf)
14701490

14711491
self.register_new_staging_project(name)
14721492

0 commit comments

Comments
 (0)