mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 10:35:40 +00:00
make operators simpler
This commit is contained in:
@ -25,7 +25,7 @@ if __name__ == '__main__':
|
||||
# Extract the InvenTree software version
|
||||
results = re.findall(r'INVENTREE_SW_VERSION = "(.*)"', text)
|
||||
|
||||
if not len(results) == 1:
|
||||
if len(results) != 1:
|
||||
print(f"Could not find INVENTREE_SW_VERSION in {version_file}")
|
||||
sys.exit(1)
|
||||
|
||||
@ -91,7 +91,7 @@ if __name__ == '__main__':
|
||||
sys.exit(1)
|
||||
|
||||
if args.tag:
|
||||
if not args.tag == version:
|
||||
if args.tag != version:
|
||||
print(f"Release tag '{args.tag}' does not match INVENTREE_SW_VERSION '{version}'")
|
||||
sys.exit(1)
|
||||
|
||||
|
Reference in New Issue
Block a user