mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
Don't check for dirs and files in the main script
This commit is contained in:
parent
85d32576eb
commit
429221f282
2 changed files with 3 additions and 8 deletions
8
fdroid
8
fdroid
|
|
@ -52,14 +52,6 @@ def main():
|
|||
print_help()
|
||||
sys.exit(1)
|
||||
|
||||
if command != 'init' and not os.path.isfile('config.py'):
|
||||
print "Missing config file - is this a repo directory?"
|
||||
sys.exit(2)
|
||||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue