[neon/neon/settings/Neon/release] debian: move file if already exists

Jonathan Esk-Riddell null at kde.org
Tue Feb 20 11:06:39 GMT 2024


Git commit 7740c4aee18cba9ad25836bdb9928d09ca38175b by Jonathan Esk-Riddell.
Committed on 20/02/2024 at 11:06.
Pushed by jriddell into branch 'Neon/release'.

move file if already exists

M  +5    -0    debian/neon-settings-2.preinst

https://invent.kde.org/neon/neon/settings/-/commit/7740c4aee18cba9ad25836bdb9928d09ca38175b

diff --git a/debian/neon-settings-2.preinst b/debian/neon-settings-2.preinst
index 6a0fa21..d756a6f 100644
--- a/debian/neon-settings-2.preinst
+++ b/debian/neon-settings-2.preinst
@@ -4,7 +4,12 @@ set -e
 
 #DEBHELPER#
 
+# Move this obsolete mime file out the way https://bugs.kde.org/show_bug.cgi?id=481052
+
 DIVERT=`dpkg-divert --list neon-settings-2 | grep defaults.list` || true
 if [ ! "$DIVERT" ]; then
   dpkg-divert --package neon-settings-2 --add /usr/share/applications/defaults.list
 fi
+if [ -e /usr/share/applications/defaults.list ]; then
+  mv /usr/share/applications/defaults.list /usr/share/applications/defaults.list.distrib
+fi


More information about the Neon-commits mailing list