1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

Check that metadata and tmp exist (fixes #266)

This commit is contained in:
Daniel Martí 2013-07-06 15:27:06 +02:00
parent fa552b12cb
commit 292fb5cc59

5
fdroid
View File

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
import os
commands = [
"build",
@ -49,6 +50,10 @@ def main():
print_help()
sys.exit(1)
for basedir in ('metadata', 'tmp'):
if not os.path.exists(basedir):
os.makedirs(basedir)
# Trick optparse into displaying the right usage when --help is used.
sys.argv[0] += ' ' + command