From 56dcb82b96fbaff539309bedee2d81abd8a180a18e2ac6ff75b27172fa2adfab Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@opensuse.org>
Date: Tue, 12 Oct 2010 13:49:47 +0000
Subject: [PATCH 1/2] Accepting request 50351 from home:lnussel:clamz

Forwarding to openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/50351
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/desktop-file-utils?expand=0&rev=17
---
 desktop-file-utils.changes | 5 +++++
 macros.desktop-file-utils  | 8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/desktop-file-utils.changes b/desktop-file-utils.changes
index cbfa5e9..1460b1e 100644
--- a/desktop-file-utils.changes
+++ b/desktop-file-utils.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Tue Oct 12 12:19:16 UTC 2010 - lnussel@suse.de
+
+- fix macros
+
 -------------------------------------------------------------------
 Thu Oct  7 14:11:12 CEST 2010 - vuntz@opensuse.org
 
diff --git a/macros.desktop-file-utils b/macros.desktop-file-utils
index 79c861f..0adcc73 100644
--- a/macros.desktop-file-utils
+++ b/macros.desktop-file-utils
@@ -19,9 +19,9 @@
 if test -x %{_bindir}/update-desktop-database; then                               \
 %if "x%1" != "x%%1"                                                               \
   %{_bindir}/update-desktop-database --quiet "%1" || true                         \
-%endif                                                                            \
-  %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || true   \
 %else                                                                             \
+  %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || true   \
+%endif                                                                            \
 fi 
 
 # On uninstall, update the desktop database. Note: we ignore upgrades (already
@@ -32,8 +32,8 @@ if [ $1 -eq 0 ]; then
     %{_bindir}/update-desktop-database --quiet "${DESKTOP_DIR}" || true           \
 %if "x%1" != "x%%1"                                                               \
     %{_bindir}/update-desktop-database --quiet "%1" || true                       \
-%endif                                                                            \
-    %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || true \
 %else                                                                             \
+    %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || true \
+%endif                                                                            \
   fi                                                                              \
 fi

From 5778634b1713f5399dd2f70cfeda1e833922782d761a76a7f736e33716cb4028 Mon Sep 17 00:00:00 2001
From: OBS User buildservice-autocommit <null@suse.de>
Date: Thu, 14 Oct 2010 10:13:53 +0000
Subject: [PATCH 2/2] Updating link to change in
 openSUSE:Factory/desktop-file-utils revision 25.0

OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/desktop-file-utils?expand=0&rev=670e7eb2edf16cb172ae9b8185987c88
---
 desktop-file-utils.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/desktop-file-utils.spec b/desktop-file-utils.spec
index 76bbd5e..ef8d04b 100644
--- a/desktop-file-utils.spec
+++ b/desktop-file-utils.spec
@@ -19,7 +19,7 @@
 
 Name:           desktop-file-utils
 Version:        0.17
-Release:        2
+Release:        3
 License:        GPLv2+
 Summary:        Utilities for Manipulating Desktop Files
 Url:            http://www.freedesktop.org/wiki/Software/desktop-file-utils