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:
parent
510e2b1e94
commit
08b7a1a6b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue