summaryrefslogtreecommitdiffstats
path: root/r14-xdg-update
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2014-10-18 14:21:26 +0200
committerSlávek Banko <[email protected]>2014-10-18 14:29:22 +0200
commitd7ccc16037550f5dc9ba2db00e47ea950c3732d2 (patch)
treeb9ba6e0324062b82d36ef1f0a11ed2eb15b76c53 /r14-xdg-update
parent44654c9af508f61aecffc5921d9f631501a069ac (diff)
downloadtdebase-d7ccc16037550f5dc9ba2db00e47ea950c3732d2.tar.gz
tdebase-d7ccc16037550f5dc9ba2db00e47ea950c3732d2.zip
Update r14-xdg-update: add update of tdenewstuff sections
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'r14-xdg-update')
-rw-r--r--r14-xdg-update10
1 files changed, 9 insertions, 1 deletions
diff --git a/r14-xdg-update b/r14-xdg-update
index 1195240d4..8bf357fff 100644
--- a/r14-xdg-update
+++ b/r14-xdg-update
@@ -3,7 +3,7 @@
# A script to perform R14.0.0 XDG compliance updates.
SCRIPT_NAME="`basename \`readlink -f $0\``"
-SCRIPT_VERSION=201407050
+SCRIPT_VERSION=201410170
# This script should be needed to run only once, but corner cases
# and file/directory permissions could cause incomplete updates.
@@ -608,6 +608,14 @@ if [ "$R14_VERSION" -lt "201310050" ]; then
fi
fi
+# Update TDENewStuff
+if [ "$R14_VERSION" -lt "201410170" ]; then
+ Log "Updating TDENewStuff providers and status."
+ find "$PROFILE_DIR"/share/config -type f -print0 2>/dev/null | \
+ xargs -r0 grep -ZIEl "^\[KNewStuff" | \
+ xargs -r0 sed -i -e "/^\[KNewStuff/,/^\[|$/{" -e "s|^\[KNewStuff|[TDENewStuff|" -e "s|^ProvidersUrl=[^ ]*|ProvidersUrl=https://www.trinitydesktop.org/ocs/providers.xml|" -e "}"
+fi
+
Log "Renaming some configuration files and directories."
# Note: The only rebranding that occured before starting the R14 branch was krita. All other
# rebranding updates belong in this script.