Hello community,

here is the log from the commit of package update-desktop-files for 
openSUSE:Factory checked in at 2017-07-30 11:24:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/update-desktop-files (Old)
 and      /work/SRC/openSUSE:Factory/.update-desktop-files.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "update-desktop-files"

Sun Jul 30 11:24:18 2017 rev:98 rq:510908 version:12.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/update-desktop-files/update-desktop-files.changes    
    2017-04-29 10:47:12.785723569 +0200
+++ 
/work/SRC/openSUSE:Factory/.update-desktop-files.new/update-desktop-files.changes
   2017-07-30 11:24:19.755223925 +0200
@@ -1,0 +2,6 @@
+Fri Jul 14 13:15:57 UTC 2017 - fv...@suse.com
+
+- Remove translations for Name,GenericName and Comment only in the
+  [Desktop Entry] section to avoid breaking desktop action translations
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ update-desktop-files.spec ++++++
--- /var/tmp/diff_new_pack.bt2lqL/_old  2017-07-30 11:24:20.395133628 +0200
+++ /var/tmp/diff_new_pack.bt2lqL/_new  2017-07-30 11:24:20.399133063 +0200
@@ -42,6 +42,7 @@
 Group:          Development/Tools/Building
 Provides:       brp-trim-desktop = %{version}
 Obsoletes:      brp-trim-desktop < %{version}
+Requires:       awk
 Requires:       libxslt-tools
 
 %description -n brp-trim-translations

++++++ brp-trim-translations.sh ++++++
--- /var/tmp/diff_new_pack.bt2lqL/_old  2017-07-30 11:24:20.455125163 +0200
+++ /var/tmp/diff_new_pack.bt2lqL/_new  2017-07-30 11:24:20.455125163 +0200
@@ -84,8 +84,8 @@
   echo "trimmed output to ${BASEDIR}/${type}/${nfile}"
   echo "trimmed output to $BASEDIR/$RPM_PACKAGE_NAME.desktopfiles"
 
-  sed -e '/^\(Name\[\|GenericName\[\|Comment\[\)/d' -e '/^\[Desktop Entry\]/a \
-X-SuSE-translate=true' "${file}" > "${file}_" && mv "${file}_" "${file}"
+  # Remove translations for Name,GenericName and Comment only in the [Desktop 
Entry] section
+  awk '/^\[/ { translate=0 } /^\[Desktop Entry\]/ { translate=1; print $0; 
print "X-SuSE-translate=true"; next } /^(Name\[|GenericName\[|Comment\[)/ && 
translate==1 { next; } { print $0 }' "${file}" > "${file}_" && mv "${file}_" 
"${file}"
 }
 
 # Handle polkit actions


Reply via email to