Skip to content
Snippets Groups Projects
Commit 32626ac7 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

apertis-abi-compare: check artifacts from a previous run instead of crashing

parent b5bb5b6a
No related branches found
No related tags found
3 merge requests!44Merge changes from apertis/v2022-updates into apertis/v2022,!38Backport v2022-updates <- v2023pre: Improvement ABI checker script,!30Improve apertis-abi-compare tool
......@@ -161,7 +161,16 @@ def main():
sys.exit('ERROR: abi-compliance-checker not found in /usr/bin/\n' +
'ERROR: abi-compliance-checker can be installed with: apt install abi-compliance-checker')
print("Checking for ABI/API breakage!")
print(f"Checking for ABI/API breakage in {folder_bin}!")
# Check if artifacts from a previous run are still there
folder_pbo = os.path.exists('pkg_binaries_old')
folder_poe = os.path.exists('pkg_old_extracted')
folder_pne = os.path.exists('pkg_new_extracted')
if folder_pbo or folder_poe or folder_pne:
sys.exit('ERROR: artifacts from a previous run have been found!\n' +
'ERROR: be sure to remove remaining folders:\n' +
'ERROR: \'pkg_binaries_old\', \'pkg_old_extracted\' and \'pkg_new_extracted\'')
# Extract debs of new version
extract_debs(folder_bin, 'pkg_new_extracted')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment