In particular
OSSTEST_CONFIG=standalone-config-example eatmydata bash -x ./standalone-generate-dump-flight-runvars
should not require ~/osstest-repos to exist.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
echo "Repos must be configured in $config" >&2
exit 1
fi
- if [ ! -d "$repos" ] ; then
+ if [ x"$AP_FETCH_PLACEHOLDERS" != xy ] && [ ! -d "$repos" ] ; then
# Is likely an absolute path, so don't create automatically,
# just in case...
echo "Repos $repos does not exist" >&2
repos=`getrepos`
repos_lock="$repos/lock"
-if [ "x$OSSTEST_REPOS_LOCK_LOCKED" != "x$repos_lock" ]; then
+if [ "x$AP_FETCH_PLACEHOLDERS" = xy ] && ! [ -e $repos ]; then
+ echo "AP_FETCH_PLACEHOLDERS, not locking" >&2
+elif [ "x$OSSTEST_REPOS_LOCK_LOCKED" != "x$repos_lock" ]; then
OSSTEST_REPOS_LOCK_LOCKED="$repos_lock" \
exec with-lock-ex -w "$repos_lock" \
"$0" "$@"