mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Bugfix for implementation version
This commit is contained in:
parent
ea8ffd6ccc
commit
7e26d14ced
@ -176,11 +176,11 @@ def compare_xml(module, apiname_tag, apiname_cur):
|
||||
code = jdiff.returncode
|
||||
print("Compared XML for " + module.name)
|
||||
if code == 100:
|
||||
print(" No changes")
|
||||
print(" No API changes")
|
||||
elif code == 101:
|
||||
print(" Changes are backwards compatible")
|
||||
print(" API Changes are backwards compatible")
|
||||
elif code == 102:
|
||||
print(" Changes are not backwards compatible")
|
||||
print(" API Changes are not backwards compatible")
|
||||
else:
|
||||
print(" *Error in XML, most likely an empty module")
|
||||
sys.stdout.flush()
|
||||
@ -530,6 +530,10 @@ def update_versions(modules, source):
|
||||
set_implementation(manifest, versions[1])
|
||||
set_release(manifest, versions[2])
|
||||
module.set_versions(versions)
|
||||
elif module.ret == 100:
|
||||
versions = [versions[0], versions[1] + 1, versions[2]]
|
||||
set_implementation(manifest, versions[1])
|
||||
module.set_versions(versions)
|
||||
elif module.ret == None:
|
||||
versions = [Spec("1.0"), 1, 1]
|
||||
set_specification(project, manifest, versions[0])
|
||||
@ -607,6 +611,13 @@ def print_version_updates(modules):
|
||||
output += ("\n")
|
||||
print(output)
|
||||
f.write(output)
|
||||
elif module.ret == 100:
|
||||
output = (module.name + ":\n")
|
||||
output += (" Current Implementation version:\t" + str(versions[1]) + "\n")
|
||||
output += (" Updated Implementation version:\t" + str(versions[1] + 1) + "\n")
|
||||
output += ("\n")
|
||||
print(output)
|
||||
f.write(output)
|
||||
elif module.ret is None:
|
||||
output = ("Added " + module.name + ":\n")
|
||||
if module.spec() != "1.0" and module.spec() != "0.0":
|
||||
|
Loading…
x
Reference in New Issue
Block a user