Released v0.8.3
This commit is contained in:
@@ -12,17 +12,20 @@ export PTLINUX_APP_HOME="${app_home}"
|
||||
release_root=""
|
||||
for candidate in "${app_home}/current" "${app_home}/previous" "${app_home}"
|
||||
do
|
||||
if [ ! -d "${candidate}/ptlinux" ]
|
||||
# Installed releases already pass an isolated import self-check before their
|
||||
# activation link is changed. Keep only a cheap corruption/fallback check on
|
||||
# every boot instead of starting Python twice and importing the full CLI twice.
|
||||
if [ ! -r "${candidate}/ptlinux/__init__.py" ] || \
|
||||
[ ! -r "${candidate}/ptlinux/__main__.py" ] || \
|
||||
[ ! -r "${candidate}/ptlinux/cli.py" ] || \
|
||||
[ ! -r "${candidate}/ptdiag/__init__.py" ] || \
|
||||
[ ! -r "${candidate}/ptdiag/assbin.py" ] || \
|
||||
[ ! -r "${candidate}/ptdiag/logs.py" ]
|
||||
then
|
||||
continue
|
||||
fi
|
||||
if "$python_bin" -I -B -c \
|
||||
'import sys; sys.path.insert(0, sys.argv[1]); import ptlinux, ptlinux.cli' \
|
||||
"${candidate}" >/dev/null 2>&1
|
||||
then
|
||||
release_root="${candidate}"
|
||||
break
|
||||
fi
|
||||
release_root="${candidate}"
|
||||
break
|
||||
done
|
||||
|
||||
if [ -z "${release_root}" ]
|
||||
|
||||
Reference in New Issue
Block a user