packageIfw: Fix warnings

Change-Id: I3c8df19e1fb50e5d41413751f502cb5f7331bfc4
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-03-11 15:18:34 +01:00
parent db61acce80
commit e60cffd2e4

View File

@@ -46,7 +46,7 @@ def substitute_file(infile, outfile, substitutions):
def ifw_template_dir():
script_dir = os.path.dirname(inspect.getfile(inspect.currentframe()))
source_dir = os.path.normpath(os.path.join(script_dir, '..'));
source_dir = os.path.normpath(os.path.join(script_dir, '..'))
return os.path.normpath(os.path.join(source_dir, 'dist', 'installer', 'ifw'))
def main():
@@ -66,16 +66,16 @@ def main():
archives = []
debug = False
for o, a in opts:
if o in ('-h', '--help'):
if o in ['-h', '--help']:
usage()
sys.exit(0)
if o in ('-v', '--version-string'):
if o in ['-v', '--version-string']:
version = a
if o in ['-d', '--display-version']:
display_version = a
if o in ('-i', '--installer-path'):
if o in ['-i', '--installer-path']:
ifw_location = a
if o in ('-a', '--archive'):
if o in ['-a', '--archive']:
archives.append(a)
if o in ['--debug']:
debug = True