Skip to content

Commit

Permalink
Fix repo sanity check tests with dnf5
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Verga <[email protected]>
  • Loading branch information
mattiaverga committed Jul 26, 2023
1 parent 46298a5 commit 61fd99f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bodhi-server/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,11 @@ def mkmetadatadir(path, updateinfo=None, comps=None, source=False):
</packagelist>
</group>
</comps>'''
updateinfofile = 'something<id>someID</id>something'

updateinfofile = '''<?xml version="1.0"?>
<updates>
</updates>'''

if not os.path.isdir(path):
os.makedirs(path)
if not comps and not source:
Expand Down

0 comments on commit 61fd99f

Please sign in to comment.