Skip to content
Snippets Groups Projects
Commit 6c0b497f authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] Exit the version checking script if a version has been found

Thanks to Martin Nolte for noticing.
parent e1232c5b
No related branches found
No related tags found
1 merge request!219dune-python migration
Pipeline #
......@@ -25,6 +25,7 @@ import pip
for package in pip.get_installed_distributions():
if package.project_name == modstr and package.has_version():
sys.stdout.write(package.version)
sys.exit(0)
# Give up on this one
sys.exit(1)
\ No newline at end of file
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