summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--al32-mktorrent.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh
index d4c5d19..3190f0c 100644
--- a/al32-mktorrent.sh
+++ b/al32-mktorrent.sh
@@ -95,6 +95,18 @@ function create_torrent_for_arch () {
python magnet2feed.py "$magnet_link" "$iso_date"
}
+### Check for if required programs are present
+
+which mktorrent 2>/dev/null || (
+ echo "Missing mktorrent"
+ exit 1
+)
+
+python -c "import feedgenerator" 2>/dev/null || (
+ echo "Missing python module feedgenerator"
+ exit 1
+)
+
### Actual program
declare -a architectures=("i686" "dual")