summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-05-15 15:37:32 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-05-15 15:37:32 +0200
commit8b2e46009bece3413c6b410b8c17bdb772e48358 (patch)
tree20c10c841446e180ffcde5989ae906c1e5cfd85a /scripts
parent4a99d1522957424f5dd760d2cd0fd12efed2c612 (diff)
downloadptxdist-8b2e46009bece3413c6b410b8c17bdb772e48358.tar.gz
ptxdist-8b2e46009bece3413c6b410b8c17bdb772e48358.tar.xz
configure_helper: only use args.pkg if it contains a package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/configure_helper.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/configure_helper.py b/scripts/configure_helper.py
index 375c50125..f060dcc2c 100755
--- a/scripts/configure_helper.py
+++ b/scripts/configure_helper.py
@@ -262,8 +262,12 @@ if (old_dir or new_dir) and args.only:
if args.only:
new_dir = args.only
-ptx_pkg = args.pkg.lower().replace('_', "-")
-ptx_PKG = args.pkg.upper().replace('-', "_")
+if args.pkg:
+ ptx_pkg = args.pkg.lower().replace('_', "-")
+ ptx_PKG = args.pkg.upper().replace('-', "_")
+else:
+ ptx_pkg = None
+ ptx_PKG = None
ptx_pkg_conf_opt = []
if args.pkg: