chiark / gitweb /
If config.py is not in the CWD, error before doing anything
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 30 Oct 2013 21:13:15 +0000 (22:13 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 30 Oct 2013 21:13:15 +0000 (22:13 +0100)
fdroid

diff --git a/fdroid b/fdroid
index 7c5097ac559286f49dd8d1f9650a5fb56ab9cb40..677078e6b2baeb9aad00d665f41d626b6fd56ba7 100755 (executable)
--- a/fdroid
+++ b/fdroid
@@ -51,6 +51,10 @@ def main():
         print_help()
         sys.exit(1)
 
+    if not os.path.isfile('config.py'):
+        print "ERROR: No config.py configuration file present"
+        sys.exit(2)
+
     for basedir in ('metadata', 'tmp'):
         if not os.path.exists(basedir):
              os.makedirs(basedir)