Hello community,

here is the log from the commit of package lightdm for openSUSE:Factory checked 
in at 2016-08-05 18:15:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lightdm (Old)
 and      /work/SRC/openSUSE:Factory/.lightdm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lightdm"

Changes:
--------
--- /work/SRC/openSUSE:Factory/lightdm/lightdm.changes  2016-06-23 
13:36:00.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.lightdm.new/lightdm.changes     2016-08-05 
18:15:22.000000000 +0200
@@ -1,0 +2,8 @@
+Thu Jul 28 09:10:44 UTC 2016 - [email protected]
+
+- Add code to %post to migrate users of no longer maintained
+  'lxdm' display manager over to 'lightdm'.
+- Obsolete lxdm up to version 0.5 (we never carried 0.5 in any
+  openSUSE product).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lightdm.spec ++++++
--- /var/tmp/diff_new_pack.GSu9VI/_old  2016-08-05 18:15:23.000000000 +0200
+++ /var/tmp/diff_new_pack.GSu9VI/_new  2016-08-05 18:15:23.000000000 +0200
@@ -80,6 +80,8 @@
 Requires:       lightdm-greeter
 # uses pam configuration and relies on scripts provided by xdm
 Requires:       xdm
+# Migrate users from lxdm to lightdm - we only obsolete up to version 0.5
+Obsoletes:      lxdm < 0.5
 Requires(pre):  pwdutils
 Recommends:     %{name}-lang
 
@@ -234,9 +236,11 @@
   -d %{_localstatedir}/lib/lightdm lightdm 2> /dev/null || :
 
 %post
+# Special trick: migrate users from lxdm to lightdm
+# see https://lists.opensuse.org/opensuse-factory/2016-07/msg00417.html
 . %{_sysconfdir}/sysconfig/displaymanager
-if [ -z "$DISPLAYMANAGER" ] ; then
-    sed -i 's/^DISPLAYMANAGER=""/DISPLAYMANAGER="lightdm"/' 
%{_sysconfdir}/sysconfig/displaymanager
+if [ -z "$DISPLAYMANAGER" -o "$DISPLAYMANAGER" = "lxdm" ] ; then
+    sed -i 's/^DISPLAYMANAGER=".*"/DISPLAYMANAGER="lightdm"/' 
%{_sysconfdir}/sysconfig/displaymanager
 fi
 
 %postun


Reply via email to