diff --git a/make_deb.py b/make_deb.py index 927152b..7053f21 100755 --- a/make_deb.py +++ b/make_deb.py @@ -147,8 +147,6 @@ def upload(ver): # Extract version from .qmake.conf ver = '' - suffix = args.suffix - ver_suffix = '' with open('.qmake.conf') as f: for l in f.readlines(): r = re.search(r'^MODULE_VERSION = (.+)', l) @@ -160,7 +158,8 @@ def upload(ver): print('Could not read version from .qmake.conf') exit(1) - + ver_suffix = ver + suffix = args.suffix if suffix: ver_suffix = ver + '~' + suffix