chiark / gitweb /
rename server request from "delete" to "uninstall"
authorHans-Christoph Steiner <hans@eds.org>
Tue, 23 Aug 2016 18:30:27 +0000 (20:30 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 24 Aug 2016 21:05:34 +0000 (23:05 +0200)
This matches the Android API's current Intent action for this, rather than
the deprecated one:

https://gitlab.com/fdroid/fdroidclient/blob/v0.101-alpha5/app/src/main/java/org/fdroid/fdroid/installer/DefaultInstallerActivity.java#L147
https://developer.android.com/reference/android/content/Intent.html#ACTION_UNINSTALL_PACKAGE
https://developer.android.com/reference/android/content/Intent.html#ACTION_DELETE

examples/config.py
fdroidserver/update.py
tests/run-tests

index d33ddfac484cd58924e1c1c035bf11f87faafcd4..43eceb1d8bd365770764b2d16df24c3bcd17a330 100644 (file)
@@ -248,9 +248,9 @@ The repository of older versions of applications from the main demo repository.
 # }
 
 # It is possible for the server operator to specify lists of apps that
-# must be installed or deleted on the client (aka "push installs).  If
-# the user has opted in, or the device is already setup to respond to
-# these requests, then fdroidclient will automatically install/delete
+# must be installed or uninstalled on the client (aka "push installs).
+# If the user has opted in, or the device is already setup to respond
+# to these requests, then F-Droid will automatically install/uninstall
 # the packageNames listed.  This is protected by the same signing key
 # as the app index metadata.
 #
@@ -260,7 +260,7 @@ The repository of older versions of applications from the main demo repository.
 #     'us.replicant',
 # }
 #
-# delete_list = {
+# uninstall_list = {
 #     'com.facebook.orca',
 #     'com.android.vending',
 # }
index 6261a69e6ce6bf85dea366e22f8dfa0d9cde6ee8..b1ebfd350c8eae1dde8876376b57a9fd49873e9a 100644 (file)
@@ -959,7 +959,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
     repoel.setAttribute("pubkey", extract_pubkey().decode('utf-8'))
     root.appendChild(repoel)
 
-    for command in ('install', 'delete'):
+    for command in ('install', 'uninstall'):
         packageNames = []
         key = command + '_list'
         if key in config:
index 7e0eb2aaaf29a271e543a1e6f9a0e13243c17bb7..c681a2baa845cda4b1d63a47365e9765b0099adb 100755 (executable)
@@ -147,13 +147,13 @@ $fdroid init
 cp -a $WORKSPACE/tests/metadata $WORKSPACE/tests/repo $REPOROOT/
 echo "accepted_formats = ['json', 'txt', 'xml', 'yml']" >> config.py
 echo "install_list = 'org.adaway'" >> config.py
-echo "delete_list = {'com.android.vending', 'com.facebook.orca',}" >> config.py
+echo "uninstall_list = {'com.android.vending', 'com.facebook.orca',}" >> config.py
 $fdroid update --verbose
 test -e repo/index.xml
 test -e repo/index.jar
 grep -F '<application id=' repo/index.xml > /dev/null
 grep -F '<install packageName=' repo/index.xml > /dev/null
-grep -F '<delete packageName=' repo/index.xml > /dev/null
+grep -F '<uninstall packageName=' repo/index.xml > /dev/null
 
 
 #------------------------------------------------------------------------------#