chiark / gitweb /
- Fix python path
authorprcrst <prcrst@hush.com>
Mon, 2 Jan 2012 11:49:20 +0000 (12:49 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Tue, 3 Jan 2012 15:38:06 +0000 (15:38 +0000)
- create required directories in build.py

build.py
checkmarket.py
checkmarket2.py
update.py

index aca9308a48a8c119c08675e920f4a2f9d93755fe..824fdd0db5ad5e30d0deefbf5a33420d8561ef5f 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
 # build.py - part of the FDroid server tools
@@ -48,13 +48,20 @@ parser.add_option("-p", "--package", default=None,
 # Get all apps...
 apps = common.read_metadata(options.verbose)
 
-output_dir = "repo"
-tmp_dir = "tmp"
-if not os.path.isdir('tmp'):
-    os.makedirs('tmp')
+output_dir = 'repo'
+if not os.path.isdir(output_dir):
+    print "Creating output directory"
+    os.makedirs(output_dir)
 
-if not os.path.isdir('build'):
-    os.makedirs('build')
+tmp_dir = 'tmp'
+if not os.path.isdir(tmp_dir):
+    print "Creating temporary directory"
+    os.makedirs(tmp_dir)
+
+build_dir = 'build'
+if not os.path.isdir(build_dir):
+    print "Creating build directory"
+    os.makedirs(build_dir)
 
 for app in apps:
 
index 47a212bf08ad8c4a606b98db63922c2d89250ae3..f8e5c80cac5fe75a540249d1cd5fad0c123b4a7e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
 # checkmarket.py - part of the FDroid server tools
index 6fd61c2cfd2e9360650395086bcbaa598e1c1736..193a63fa8670f043ccae443b8730521b646a72b1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
 # checkmarket2.py - part of the FDroid server tools
index dc228a2ef07f64860b65d083b78fa91023dbffce..e6758d12f2550f939b622fcd38a47fce45c7922a 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
 # update.py - part of the FDroid server tools