mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-08 22:29:33 +00:00
Small changes to make python script work more often.
This commit is contained in:
parent
aacefa5f49
commit
ceeb26322d
7
update_versions.py
Normal file → Executable file
7
update_versions.py
Normal file → Executable file
@ -114,9 +114,8 @@ class Spec:
|
|||||||
self.third = None
|
self.third = None
|
||||||
spec_nums = num.split(".")
|
spec_nums = num.split(".")
|
||||||
if len(spec_nums) == 3:
|
if len(spec_nums) == 3:
|
||||||
final = spec_nums[2]
|
self.final = spec_nums[2]
|
||||||
self.third = int(final)
|
self.third = int(self.final)
|
||||||
|
|
||||||
l, r = spec_nums[0], spec_nums[1]
|
l, r = spec_nums[0], spec_nums[1]
|
||||||
|
|
||||||
self.left = int(l)
|
self.left = int(l)
|
||||||
@ -846,7 +845,6 @@ def usage():
|
|||||||
def main():
|
def main():
|
||||||
global tag; global source; global docdir; global dry
|
global tag; global source; global docdir; global dry
|
||||||
tag = None; source = None; docdir = None; dry = True
|
tag = None; source = None; docdir = None; dry = True
|
||||||
|
|
||||||
ret = args()
|
ret = args()
|
||||||
if ret:
|
if ret:
|
||||||
print(usage())
|
print(usage())
|
||||||
@ -868,7 +866,6 @@ def main():
|
|||||||
if not do_git(tag, tag_dir):
|
if not do_git(tag, tag_dir):
|
||||||
return 1
|
return 1
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
tag_modules = find_modules(tag_dir)
|
tag_modules = find_modules(tag_dir)
|
||||||
source_modules = find_modules(source)
|
source_modules = find_modules(source)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user