mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
use 'metadata' name throughout: --createmeta to --create-metadata
To keep the naming used within fdroid consistent, I renamed this long flag to use the whole word 'metadata' since that is what is used everywhere else
This commit is contained in:
parent
0e2f4d54d0
commit
78d5ebf26c
3 changed files with 10 additions and 10 deletions
|
@ -882,7 +882,7 @@ def main():
|
|||
|
||||
# Parse command line...
|
||||
parser = OptionParser()
|
||||
parser.add_option("-c", "--createmeta", action="store_true", default=False,
|
||||
parser.add_option("-c", "--create-metadata", action="store_true", default=False,
|
||||
help="Create skeleton metadata files that are missing")
|
||||
parser.add_option("--delete-unknown", action="store_true", default=False,
|
||||
help="Delete APKs without metadata from the repo")
|
||||
|
@ -957,7 +957,7 @@ def main():
|
|||
found = True
|
||||
break
|
||||
if not found:
|
||||
if options.createmeta:
|
||||
if options.create_metadata:
|
||||
f = open(os.path.join('metadata', apk['id'] + '.txt'), 'w')
|
||||
f.write("License:Unknown\n")
|
||||
f.write("Web Site:\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue