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
|
@ -128,8 +128,8 @@ __complete_install() {
|
||||||
|
|
||||||
__complete_update() {
|
__complete_update() {
|
||||||
opts="-h -c -v -q -b -i -I -e -w"
|
opts="-h -c -v -q -b -i -I -e -w"
|
||||||
lopts="--help --createmeta --verbose --quiet --buildreport --interactive
|
lopts="--help --create-metadata --verbose --quiet --buildreport
|
||||||
--icons --editor --wiki --pretty --clean --delete-unknown"
|
--interactive --icons --editor --wiki --pretty --clean --delete-unknown"
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
-e|--editor)
|
-e|--editor)
|
||||||
_filedir
|
_filedir
|
||||||
|
|
|
@ -882,7 +882,7 @@ def main():
|
||||||
|
|
||||||
# Parse command line...
|
# Parse command line...
|
||||||
parser = OptionParser()
|
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")
|
help="Create skeleton metadata files that are missing")
|
||||||
parser.add_option("--delete-unknown", action="store_true", default=False,
|
parser.add_option("--delete-unknown", action="store_true", default=False,
|
||||||
help="Delete APKs without metadata from the repo")
|
help="Delete APKs without metadata from the repo")
|
||||||
|
@ -957,7 +957,7 @@ def main():
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
if not found:
|
if not found:
|
||||||
if options.createmeta:
|
if options.create_metadata:
|
||||||
f = open(os.path.join('metadata', apk['id'] + '.txt'), 'w')
|
f = open(os.path.join('metadata', apk['id'] + '.txt'), 'w')
|
||||||
f.write("License:Unknown\n")
|
f.write("License:Unknown\n")
|
||||||
f.write("Web Site:\n")
|
f.write("Web Site:\n")
|
||||||
|
|
|
@ -51,7 +51,7 @@ REPOROOT=`create_test_dir`
|
||||||
cd $REPOROOT
|
cd $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --createmeta
|
$fdroid update --create-metadata
|
||||||
grep -F '<application id=' repo/index.xml
|
grep -F '<application id=' repo/index.xml
|
||||||
|
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
|
$fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --createmeta
|
$fdroid update --create-metadata
|
||||||
grep -F '<application id=' repo/index.xml
|
grep -F '<application id=' repo/index.xml
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
|
@ -153,7 +153,7 @@ cd $REPOROOT
|
||||||
mkdir repo
|
mkdir repo
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
$fdroid update --createmeta
|
$fdroid update --create-metadata
|
||||||
grep -F '<application id=' repo/index.xml
|
grep -F '<application id=' repo/index.xml
|
||||||
|
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE
|
$fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --createmeta
|
$fdroid update --create-metadata
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
grep -F '<application id=' repo/index.xml
|
grep -F '<application id=' repo/index.xml
|
||||||
|
@ -181,12 +181,12 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE
|
$fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --createmeta
|
$fdroid update --create-metadata
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
grep -F '<application id=' repo/index.xml
|
grep -F '<application id=' repo/index.xml
|
||||||
cp $WORKSPACE/tests/urzip.apk $REPOROOT/
|
cp $WORKSPACE/tests/urzip.apk $REPOROOT/
|
||||||
$fdroid update --createmeta
|
$fdroid update --create-metadata
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
grep -F '<application id=' repo/index.xml
|
grep -F '<application id=' repo/index.xml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue