stages/dnf: don't show repo id in checksum error

repoid was based on index in the "repos" array from options. Now that we
fetch repository configuration from a source, the order might be
different.
This commit is contained in:
Lars Karlitski 2019-12-21 19:24:43 +01:00 committed by Tom Gundersen
parent 510e2b1e94
commit 08b7a1a6b5

View file

@ -268,7 +268,7 @@ def main(tree, options):
repomd = f.read()
checksum = hashlib.sha256(repomd).hexdigest()
if checksum != expected_checksum:
print(f"repo {repoid} has checksum {checksum}, expected {expected_checksum}")
print(f"error: repo was configured with checksum {expected_checksum}, but actually got {checksum}")
return 1
# delete cache manually, because `dnf clean all` leaves some contents behind