Browse Source

Sanity check -- we need at least 1 working source to do anything useful

Zachary Kotlarek 13 years ago
parent
commit
e319cbe365
1 changed files with 5 additions and 0 deletions
  1. 5 0
      findTorrent.pl

+ 5 - 0
findTorrent.pl

@@ -135,6 +135,11 @@ if ($ENABLE_SOURCE{'ISO'}) {
 	}
 }
 
+# Sanity check
+if (scalar(keys(%SOURCES)) < 1) {
+	die("No sources available\n");
+}
+
 # Environment
 #if ($DEBUG) {
 #	print STDERR `printenv` . "\n";