[desktop-file-utils] another try

Matthias Clasen mclasen at fedoraproject.org
Sat Dec 24 00:03:37 UTC 2011


commit 03eab5d720d5452b31bac4a11963aa84354b43cc
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Fri Dec 23 19:03:20 2011 -0500

    another try

 desktop-file-utils.spec |    6 +++---
 localelist-fixup.patch  |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/desktop-file-utils.spec b/desktop-file-utils.spec
index 5f42ef4..81f4c38 100644
--- a/desktop-file-utils.spec
+++ b/desktop-file-utils.spec
@@ -4,7 +4,7 @@
 Summary: Utilities for manipulating .desktop files
 Name: desktop-file-utils
 Version: 0.19
-Release: 4%{?dist}
+Release: 5%{?dist}
 URL: http://www.freedesktop.org/software/desktop-file-utils
 Source0: http://www.freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
 Source1: desktop-entry-mode-init.el
@@ -28,7 +28,7 @@ fixing it up in the process.
 Summary:        Compiled elisp files to run %{pkgname} under GNU Emacs
 Group:          Applications/Editors
 BuildArch:      noarch
-BuildRequires:  emacs
+#BuildRequires:  emacs
 Requires:       emacs(bin) >= %{_emacs_version}
 
 %description -n emacs-%{pkg}
@@ -80,7 +80,7 @@ touch $RPM_BUILD_ROOT%{_emacs_sitestartdir}/desktop-entry-mode-init.elc
 %{_emacs_sitelispdir}/%{pkg}/*.el
 
 %changelog
-* Fri Dec 23 2011 Matthias Clasen <mclasen at redhat.com> - 0.19-4
+* Fri Dec 23 2011 Matthias Clasen <mclasen at redhat.com> - 0.19-5
 - Fix up locale lists just like other lists
 
 * Tue Dec 20 2011 Matthias Clasen <mclasen at redhat.com> - 0.19-1
diff --git a/localelist-fixup.patch b/localelist-fixup.patch
index d16ffb8..4952197 100644
--- a/localelist-fixup.patch
+++ b/localelist-fixup.patch
@@ -86,7 +86,7 @@ diff -up desktop-file-utils-0.19/src/validate.c.localelist desktop-file-utils-0.
 +      keys = g_key_file_get_keys (keyfile, GROUP_DESKTOP_ENTRY, &len, NULL);
 +      for (j = 0; j < len; j++) {
 +        if (g_str_has_prefix (keys[j], registered_desktop_keys[i].name) &&
-+            keys[j][keylen] == '[' || keys[j][keylen] == '\0') {
++            (keys[j][keylen] == '[' || keys[j][keylen] == '\0')) {
 +          fixup_list (keyfile, filename, keys[j]);
 +        }
        }


More information about the scm-commits mailing list