From d7ccc16037550f5dc9ba2db00e47ea950c3732d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 18 Oct 2014 14:21:26 +0200 Subject: Update r14-xdg-update: add update of tdenewstuff sections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- r14-xdg-update | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'r14-xdg-update') 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. -- cgit v1.2.1