fedora-helper: Use repo_local for local RPMs

Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Raits 2020-06-19 06:44:13 +02:00
parent b09a48a0c1
commit f74d7a19ae
No known key found for this signature in database
GPG key ID: 115D5AB89C5C1E1E

View file

@ -139,9 +139,9 @@ def get_binary_license(ctx, source, add, verbose):
repo_local = pool.add_repo("local")
repo_local.priority = 99
s = repo.add_rpm(source)
s = repo_local.add_rpm(source)
for f in add:
repo.add_rpm(f)
repo_local.add_rpm(f)
pool.addfileprovides()
pool.createwhatprovides()