summaryrefslogtreecommitdiffstats
path: root/r14-xdg-update
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-18 18:35:56 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-18 18:35:56 -0500
commit891da4b83e901780ca4becb9b6f7c9cf0fb70ffd (patch)
treeb177b8ddddf3a0e73a86e482d88e0e188c601516 /r14-xdg-update
parent0c11ace605ba33feb137eca638a39c27a71e1d8d (diff)
parentd7ccc16037550f5dc9ba2db00e47ea950c3732d2 (diff)
downloadtdebase-891da4b83e901780ca4becb9b6f7c9cf0fb70ffd.tar.gz
tdebase-891da4b83e901780ca4becb9b6f7c9cf0fb70ffd.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
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.