chiark / gitweb /
use 'metadata' name throughout: --createmeta to --create-metadata
authorHans-Christoph Steiner <hans@eds.org>
Fri, 30 May 2014 21:07:19 +0000 (17:07 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 5 Jun 2014 01:54:56 +0000 (21:54 -0400)
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

completion/bash-completion
fdroidserver/update.py
tests/run-tests

index ae47746e958e8939ca32764074e14181f0ba343b..5916c6691993be21ab896dbf4b8aa431651eefda 100644 (file)
@@ -128,8 +128,8 @@ __complete_install() {
 
 __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
index c2679ca8d39556aedcf1c5be46cf5a0ba01a971b..faf18ba635b1be1ec367b0603960addeab250888 100644 (file)
@@ -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")
index f5e60057fd1767e0b4c41c31a5cbbc168745f7de..206ffa6babda96c92720488c28ad8cb6a9b022d6 100755 (executable)
@@ -51,7 +51,7 @@ REPOROOT=`create_test_dir`
 cd $REPOROOT
 $fdroid init
 copy_apks_into_repo $REPOROOT
-$fdroid update --createmeta
+$fdroid update --create-metadata
 grep -F '<application id=' repo/index.xml
 
 
@@ -138,7 +138,7 @@ cd $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
@@ -153,7 +153,7 @@ cd $REPOROOT
 mkdir repo
 copy_apks_into_repo $REPOROOT
 $fdroid init
-$fdroid update --createmeta
+$fdroid update --create-metadata
 grep -F '<application id=' repo/index.xml
 
 
@@ -166,7 +166,7 @@ cd $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
@@ -181,12 +181,12 @@ cd $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/
-$fdroid update --createmeta
+$fdroid update --create-metadata
 test -e repo/index.xml
 test -e repo/index.jar
 grep -F '<application id=' repo/index.xml