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
__complete_update() {
opts="-h -c -v -q -b -i -I -e -w"
__complete_update() {
opts="-h -c -v -q -b -i -I -e -w"
- lopts="--help --createmeta --verbose --quiet --buildreport --interactive
- --icons --editor --wiki --pretty --clean --delete-unknown"
+ lopts="--help --create-metadata --verbose --quiet --buildreport
+ --interactive --icons --editor --wiki --pretty --clean --delete-unknown"
case "${prev}" in
-e|--editor)
_filedir
case "${prev}" in
-e|--editor)
_filedir
# Parse command line...
parser = OptionParser()
# 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")
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")
found = True
break
if not found:
found = True
break
if not found:
+ if options.create_metadata:
f = open(os.path.join('metadata', apk['id'] + '.txt'), 'w')
f.write("License:Unknown\n")
f.write("Web Site:\n")
f = open(os.path.join('metadata', apk['id'] + '.txt'), 'w')
f.write("License:Unknown\n")
f.write("Web Site:\n")
cd $REPOROOT
$fdroid init
copy_apks_into_repo $REPOROOT
cd $REPOROOT
$fdroid init
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
$fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
test -e $KEYSTORE
copy_apks_into_repo $REPOROOT
$fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
test -e $KEYSTORE
copy_apks_into_repo $REPOROOT
-$fdroid update --createmeta
+$fdroid update --create-metadata
grep -F '<application id=' repo/index.xml
test -e repo/index.xml
test -e repo/index.jar
grep -F '<application id=' repo/index.xml
test -e repo/index.xml
test -e repo/index.jar
mkdir repo
copy_apks_into_repo $REPOROOT
$fdroid init
mkdir repo
copy_apks_into_repo $REPOROOT
$fdroid init
-$fdroid update --createmeta
+$fdroid update --create-metadata
grep -F '<application id=' repo/index.xml
grep -F '<application id=' repo/index.xml
$fdroid init --keystore $KEYSTORE
test -e $KEYSTORE
copy_apks_into_repo $REPOROOT
$fdroid init --keystore $KEYSTORE
test -e $KEYSTORE
copy_apks_into_repo $REPOROOT
-$fdroid update --createmeta
+$fdroid update --create-metadata
test -e repo/index.xml
test -e repo/index.jar
grep -F '<application id=' repo/index.xml
test -e repo/index.xml
test -e repo/index.jar
grep -F '<application id=' repo/index.xml
$fdroid init --keystore $KEYSTORE
test -e $KEYSTORE
copy_apks_into_repo $REPOROOT
$fdroid init --keystore $KEYSTORE
test -e $KEYSTORE
copy_apks_into_repo $REPOROOT
-$fdroid update --createmeta
+$fdroid update --create-metadata
test -e repo/index.xml
test -e repo/index.jar
grep -F '<application id=' repo/index.xml
cp $WORKSPACE/tests/urzip.apk $REPOROOT/
test -e repo/index.xml
test -e repo/index.jar
grep -F '<application id=' repo/index.xml
cp $WORKSPACE/tests/urzip.apk $REPOROOT/
-$fdroid update --createmeta
+$fdroid update --create-metadata
test -e repo/index.xml
test -e repo/index.jar
grep -F '<application id=' repo/index.xml
test -e repo/index.xml
test -e repo/index.jar
grep -F '<application id=' repo/index.xml