mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-04 02:00:11 +02:00
Check that metadata and tmp exist (fixes #266)
This commit is contained in:
parent
fa552b12cb
commit
292fb5cc59
5
fdroid
5
fdroid
@ -18,6 +18,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
commands = [
|
commands = [
|
||||||
"build",
|
"build",
|
||||||
@ -49,6 +50,10 @@ def main():
|
|||||||
print_help()
|
print_help()
|
||||||
sys.exit(1)
|
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.
|
# Trick optparse into displaying the right usage when --help is used.
|
||||||
sys.argv[0] += ' ' + command
|
sys.argv[0] += ' ' + command
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user