mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Change Zenmap version syntax to meet pip standards. Fixes #2714
This commit is contained in:
@@ -86,6 +86,7 @@ def update_date(base_dir):
|
||||
|
||||
|
||||
def update_version(base_dir, version):
|
||||
version = re.sub(r'(?=[^0-9.])', '+', version, 1)
|
||||
print(">>> Updating %s" % os.path.join(base_dir, VERSION))
|
||||
vf = open(os.path.join(base_dir, VERSION), "w")
|
||||
print(version, file=vf)
|
||||
|
||||
Reference in New Issue
Block a user