summaryrefslogtreecommitdiffstats
path: root/jjb/apex
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-04-20 20:16:50 -0400
committerFeng Pan <fpan@redhat.com>2016-04-20 22:33:15 -0400
commit1467f0c2dd1fc934e30f28cb5cb02772736c1f8a (patch)
treec3fb242a2967ea0bfcc582027a77a685caca091a /jjb/apex
parent865b502c0ad09f173ccf80cee1577a3d76f46fd4 (diff)
Modify variable checking for existance for strict mode
Change-Id: I805bdd746d1ab6fad00be014973e0d38c684bc4c Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'jjb/apex')
-rw-r--r--jjb/apex/apex.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index 9d63d4206..0356ddab3 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -855,10 +855,10 @@
exit 1
fi
fi
- if [ -z "$PYTHONPATH" ]; then
- export PYTHONPATH=${WORKSPACE}/lib/python/apex
+ if [ -z ${PYTHONPATH:-} ]; then
+ export PYTHONPATH=${WORKSPACE}/lib/python
else
- export PYTHONPATH=$PYTHONPATH:${WORKSPACE}/lib/python/apex
+ export PYTHONPATH=$PYTHONPATH:${WORKSPACE}/lib/python
fi
else
RPM_LIST=$RPM_INSTALL_PATH