Hello community,

here is the log from the commit of package desktop-file-utils for 
openSUSE:Factory checked in at 2017-07-04 09:08:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/desktop-file-utils (Old)
 and      /work/SRC/openSUSE:Factory/.desktop-file-utils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "desktop-file-utils"

Tue Jul  4 09:08:36 2017 rev:57 rq:507346 version:0.23

Changes:
--------
--- /work/SRC/openSUSE:Factory/desktop-file-utils/desktop-file-utils.changes    
2016-11-02 12:29:38.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.desktop-file-utils.new/desktop-file-utils.changes   
    2017-07-04 09:08:38.265429240 +0200
@@ -1,0 +2,9 @@
+Thu Jun 22 10:07:09 UTC 2017 - [email protected]
+
+- Replace %desktop_database_post/postun with respective file
+  triggers in desktop-file-utils: any file put into
+  /usr/share/applications will trigger the execution of the script.
+  In order to not break the macros short-term they are being
+  redefined to %nil.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ desktop-file-utils.spec ++++++
--- /var/tmp/diff_new_pack.72tqhK/_old  2017-07-04 09:08:38.865344884 +0200
+++ /var/tmp/diff_new_pack.72tqhK/_new  2017-07-04 09:08:38.865344884 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package desktop-file-utils
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -66,7 +66,11 @@
 mkdir -p %{buildroot}%{_datadir}/applications
 touch %{buildroot}%{_datadir}/applications/mimeinfo.cache
 
-%post
+%filetriggerin -- %{_datadir}/applications
+%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true
+%{_bindir}/suse-update-mime-defaults || true
+
+%filetriggerpostun -- %{_datadir}/applications
 %{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true
 %{_bindir}/suse-update-mime-defaults || true
 

++++++ macros.desktop-file-utils ++++++
--- /var/tmp/diff_new_pack.72tqhK/_old  2017-07-04 09:08:38.917337574 +0200
+++ /var/tmp/diff_new_pack.72tqhK/_new  2017-07-04 09:08:38.917337574 +0200
@@ -16,29 +16,9 @@
 
 # On install, update the desktop database
 %desktop_database_post()                                                       
   \
-if test -x %{_bindir}/update-desktop-database; then                            
   \
-%if "x%1" != "x%%1"                                                            
   \
-  %{_bindir}/update-desktop-database --quiet "%1" || true                      
   \
-%else                                                                          
   \
-  %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || 
true   \
-%endif                                                                         
   \
-fi                                                                             
   \
-if test -x %{_bindir}/suse-update-mime-defaults; then                          
   \
-  %{_bindir}/suse-update-mime-defaults || true                                 
   \
-fi
+%nil
 
 # On uninstall, update the desktop database. Note: we ignore upgrades (already
 # handled in %post of the new package).
 %desktop_database_postun()                                                     
   \
-if [ $1 -eq 0 ]; then                                                          
   \
-  if test -x %{_bindir}/update-desktop-database; then                          
   \
-%if "x%1" != "x%%1"                                                            
   \
-    %{_bindir}/update-desktop-database --quiet "%1" || true                    
   \
-%else                                                                          
   \
-    %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || 
true \
-%endif                                                                         
   \
-  fi                                                                           
   \
-  if test -x %{_bindir}/suse-update-mime-defaults; then                        
   \
-    %{_bindir}/suse-update-mime-defaults || true                               
   \
-  fi                                                                           
   \
-fi
+%nil


Reply via email to