From: prcrst Date: Mon, 2 Jan 2012 11:49:20 +0000 (+0100) Subject: - Fix python path X-Git-Tag: 0.1~1177 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=93330e3ff3097686882231e88615ec408940e6f2;p=fdroidserver.git - Fix python path - create required directories in build.py --- diff --git a/build.py b/build.py index aca9308a..824fdd0d 100755 --- 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: diff --git a/checkmarket.py b/checkmarket.py index 47a212bf..f8e5c80c 100755 --- a/checkmarket.py +++ b/checkmarket.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # -*- coding: utf-8 -*- # # checkmarket.py - part of the FDroid server tools diff --git a/checkmarket2.py b/checkmarket2.py index 6fd61c2c..193a63fa 100755 --- a/checkmarket2.py +++ b/checkmarket2.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # -*- coding: utf-8 -*- # # checkmarket2.py - part of the FDroid server tools diff --git a/update.py b/update.py index dc228a2e..e6758d12 100755 --- 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