chiark / gitweb /
Enforce no spaces, as bad things will silently happen otherwise
authorCiaran Gultnieks <ciaran@ciarang.com>
Thu, 19 Jan 2012 23:09:29 +0000 (23:09 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Thu, 19 Jan 2012 23:09:29 +0000 (23:09 +0000)
update.py

index 7aa5e7361ed31618207350db67d7404e80334609..dab3b8c20957b975428c25bda7c3ebbcd5d630c9 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -79,6 +79,9 @@ apks = []
 for apkfile in glob.glob(os.path.join('repo','*.apk')):
 
     apkfilename = apkfile[5:]
+    if apkfilename.find(' ') != -1:
+        print "No spaces in APK filenames!"
+        sys.exit(1)
     srcfilename = apkfilename[:-4] + "_src.tar.gz"
 
     if not options.quiet: