aboutsummaryrefslogtreecommitdiffstats
path: root/bin/srt
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2018-12-29 11:38:40 -0800
committerDavid Reyna <David.Reyna@windriver.com>2018-12-29 11:38:40 -0800
commit602a75909c666d75d1e86d438b2c3694207ca6ad (patch)
tree6cb899625c102070a6da4ba3a1fb246afd5a0ada /bin/srt
parentd7abdc612e8085d798da9d30d73b403b1fd2d666 (diff)
downloadsrtool-602a75909c666d75d1e86d438b2c3694207ca6ad.tar.gz
srtool-602a75909c666d75d1e86d438b2c3694207ca6ad.tar.bz2
srtool-602a75909c666d75d1e86d438b2c3694207ca6ad.zip
srtool: add quick test for python3 and sqlite3
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Diffstat (limited to 'bin/srt')
-rwxr-xr-xbin/srt11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/srt b/bin/srt
index 87a506ae..06940ee8 100755
--- a/bin/srt
+++ b/bin/srt
@@ -110,8 +110,15 @@ stop_system()
}
verify_prereq() {
- # disable for now
- #return
+ # Quick check for Python3
+ if [ -z "$(which python3)" ] ; then
+ echo "ERROR: missing 'python3' host package"
+ return 2
+ fi
+ if [ -z "$(which sqlite3)" ] ; then
+ echo "ERROR: missing 'sqlite3' host package"
+ return 2
+ fi
# Verify Django version
reqfile=$(python3 -c "import os; print(os.path.realpath('$SRT_BASE_DIR/bin/srtool-requirements.txt'))")