[arch] fix: conflict resolution: removing hard dependencies that would be satisfied with the inclusion of the new package

This commit is contained in:
Vinicius Moreira
2022-05-19 16:15:34 -03:00
parent 667bca3748
commit a191748124
4 changed files with 92 additions and 38 deletions

View File

@@ -294,7 +294,7 @@ class AURClient:
provided.add(pkgname)
if info:
provided.add('{}={}'.format(pkgname, info['pkgver']))
provided.add(f"{pkgname}={info['pkgver']}")
if info.get('provides'):
provided.update(info.get('provides'))
@@ -303,7 +303,7 @@ class AURClient:
'b': info.get('pkgbase', pkgname)}
else:
if latest_version:
provided.add('{}={}'.format(pkgname, latest_version))
provided.add(f'{pkgname}={latest_version}')
return {'c': None, 's': None, 'p': provided, 'r': 'aur', 'v': latest_version, 'd': set(), 'b': pkgname}