chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c5cd7a
)
If config.py is not in the CWD, error before doing anything
author
Daniel Martí
<mvdan@mvdan.cc>
Wed, 30 Oct 2013 21:13:15 +0000
(22:13 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Wed, 30 Oct 2013 21:13:15 +0000
(22:13 +0100)
fdroid
patch
|
blob
|
history
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)