Compare commits

...
Sign in to create a new pull request.

11 commits

Author SHA1 Message Date
Fedora Release Engineering
a57ce43deb dist-git conversion 2010-07-28 12:50:41 +00:00
Bill Nottingham
3fbcaf3514 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:21:37 +00:00
Jesse Keating
5033a10f9b Initialize branch F-9 for desktop-file-utils 2008-04-20 15:55:54 +00:00
Ray Strode
9bd6f0df01 - Drop old unneeded obsoletes on desktop-file-validator (bug 225681) 2008-03-19 14:06:41 +00:00
Matthias Clasen
7e8c39b7f8 0.15 2008-03-04 15:00:48 +00:00
Matthias Clasen
f09170d0d8 0.15 2008-03-04 14:57:55 +00:00
Jesse Keating
8aa74d4a43 - Autorebuild for GCC 4.3 2008-02-19 22:36:24 +00:00
Ray Strode
22472e03d5 - make icon extension a warning not an error 2007-12-07 02:56:00 +00:00
Ray Strode
fb19d72978 drop unused patches 2007-12-07 02:48:39 +00:00
xulchris
26a01a3905 upstream sync 2007-11-30 19:36:29 +00:00
Bill Nottingham
9d20e8b9a3 makefile update to properly grab makefile.common 2007-10-15 18:41:33 +00:00
11 changed files with 34 additions and 118 deletions

View file

@ -1 +0,0 @@
desktop-file-utils-0.13.tar.gz

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
desktop-file-utils-0.15.tar.gz

View file

@ -1,6 +0,0 @@
# Makefile for source rpm: desktop-file-utils
# $Id$
NAME := desktop-file-utils
SPECFILE = $(firstword $(wildcard *.spec))
include ../common/Makefile.common

View file

@ -1,11 +0,0 @@
--- desktop-file-utils-0.10/src/update-desktop-database.c.dont-use-uninitialized-memory 2006-01-22 15:53:08.000000000 -0500
+++ desktop-file-utils-0.10/src/update-desktop-database.c 2006-01-22 15:53:17.000000000 -0500
@@ -444,7 +444,7 @@
for (i = 0; data_dirs[i] != NULL; i++);
- args = g_new (char *, i + 1);
+ args = g_new0 (char *, i + 1);
for (i = 0; data_dirs[i] != NULL; i++)
args[i] = g_build_filename (data_dirs[i], "applications", NULL);

View file

@ -1,20 +0,0 @@
--- desktop-file-utils-0.11/src/validate.c.make-category-validation-non-fatal 2006-04-18 18:03:13.000000000 -0400
+++ desktop-file-utils-0.11/src/validate.c 2006-10-27 14:33:53.000000000 -0400
@@ -208,7 +208,7 @@
{
if (strcmp (vals[i], categories_keys[j]) != 0)
{
- print_fatal (filename, "%s values are case sensitive (should be \"%s\" instead of \"%s\")\n",
+ print_warning (filename, "%s values are case sensitive (should be \"%s\" instead of \"%s\")\n",
key, categories_keys[j], vals[i]);
}
break;
@@ -221,7 +221,7 @@
char *valid_categories;
valid_categories = g_strjoinv ("\", \"", (gchar **) categories_keys);
- print_fatal (filename, "%s values must be one of \"%s\" (found \"%s\")\n",
+ print_warning (filename, "%s values must be one of \"%s\" (found \"%s\")\n",
key, valid_categories, vals[i]);
g_free (valid_categories);
}

View file

@ -1,31 +0,0 @@
--- desktop-file-utils-0.12/src/install.c 18 Apr 2006 22:08:10 -0000 1.18
+++ desktop-file-utils-0.12/src/install.c 2 Feb 2007 19:43:27 -0000
@@ -96,12 +96,10 @@ process_one_file (const char *filename,
GError *rebuild_error;
GSList *tmp;
- g_assert (vendor_name);
-
dirname = g_path_get_dirname (filename);
basename = g_path_get_basename (filename);
- if (!g_str_has_prefix (basename, vendor_name))
+ if (vendor_name && !g_str_has_prefix (basename, vendor_name))
{
char *new_base;
new_base = g_strconcat (vendor_name, "-", basename, NULL);
@@ -564,12 +562,6 @@ main (int argc, char **argv)
if (vendor_name == NULL)
vendor_name = g_strdup (g_getenv ("DESKTOP_FILE_VENDOR"));
- if (vendor_name == NULL)
- {
- g_printerr (_("Must specify the vendor namespace for these files with --vendor\n"));
- return 1;
- }
-
if (copy_generic_name_to_name && copy_name_to_generic_name)
{
g_printerr (_("Specifying both --copy-name-to-generic-name and --copy-generic-name-to-name at once doesn't make much sense.\n"));

View file

@ -0,0 +1,12 @@
diff -up desktop-file-utils-0.14/src/validate.c.make-icon-extension-non-fatal desktop-file-utils-0.14/src/validate.c
--- desktop-file-utils-0.14/src/validate.c.make-icon-extension-non-fatal 2007-12-06 21:52:11.000000000 -0500
+++ desktop-file-utils-0.14/src/validate.c 2007-12-06 21:52:39.000000000 -0500
@@ -737,7 +737,7 @@ handle_icon_key (kf_validator *kf,
if (g_str_has_suffix (value, ".png") ||
g_str_has_suffix (value, ".xpm") ||
g_str_has_suffix (value, ".svg")) {
- print_fatal (kf, "value \"%s\" for key \"%s\" in group \"%s\" is an icon "
+ print_warning (kf, "value \"%s\" for key \"%s\" in group \"%s\" is an icon "
"name with an extension, but there should be no extension "
"as described in the Icon Theme Specification if the "
"value is not an absolute path\n",

View file

@ -1,18 +0,0 @@
--- desktop-file-utils-0.9/src/eggdesktopentries.c.nogroup 2004-10-18 14:10:48.527841168 +0200
+++ desktop-file-utils-0.9/src/eggdesktopentries.c 2004-10-18 14:19:33.102093760 +0200
@@ -884,6 +884,15 @@
gchar *key, *value, *key_end, *value_start, *locale;
gsize key_len, value_len;
+ if (entries->current_group->name == NULL)
+ {
+ g_set_error (error, EGG_DESKTOP_ENTRIES_ERROR,
+ EGG_DESKTOP_ENTRIES_ERROR_BAD_START_GROUP,
+ _("desktop entry file does not start with "
+ "legal start group"));
+ return;
+ }
+
key_end = value_start = strchr (line, '=');
g_assert (key_end != NULL);

View file

@ -1,11 +1,10 @@
Summary: Utilities for manipulating .desktop files
Name: desktop-file-utils
Version: 0.13
Release: 3%{?dist}
Version: 0.15
Release: 2%{?dist}
URL: http://www.freedesktop.org/software/desktop-file-utils
Source0: http://www.freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.gz
# https://bugs.freedesktop.org/show_bug.cgi?id=12018
Patch0: short-option.patch
License: GPLv2+
Group: Development/Tools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -13,8 +12,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib2-devel >= 2.12.0
BuildRequires: emacs
Obsoletes: desktop-file-validator
%description
.desktop files are used to describe an application for inclusion in
GNOME or KDE menus. This package contains desktop-file-validate which
@ -25,7 +22,6 @@ fixing it up in the process.
%prep
%setup -q
%patch0 -p1 -b .short-option
%build
%configure
@ -45,6 +41,24 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/emacs/site-lisp/
%changelog
* Wed Mar 19 2008 Ray Strode <rstrode@redhat.com> - 0.15-2
- Drop old unneeded obsoletes on desktop-file-validator
(bug 225681)
* Tue Mar 4 2008 Matthias Clasen <mclasen@redhat.com> - 0.15-1
- Update to 0.15
- Drop upstreamed patch
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.14-3
- Autorebuild for GCC 4.3
* Thu Dec 6 2007 Ray Strode <rstrode@redhat.com> 0.14-2
- make icon extension a warning not an error
* Fri Nov 30 2007 Christopher Stone <chris.stone@gmail.com> 0.14-1
- Upstream sync
- Remove no longer needed short option patch
* Wed Aug 15 2007 Matthias Clasen <mclasen@redhat.com> - 0.13-3
- Make the -m option work (#232761)

View file

@ -1,24 +0,0 @@
diff -up desktop-file-utils-0.13/src/install.c.short-option desktop-file-utils-0.13/src/install.c
--- desktop-file-utils-0.13/src/install.c.short-option 2007-08-15 21:14:57.000000000 -0400
+++ desktop-file-utils-0.13/src/install.c 2007-08-15 21:17:06.000000000 -0400
@@ -430,7 +430,9 @@ parse_options_callback (const gchar *op
GError **error)
{
/* skip "--" */
- option_name += 2;
+ option_name++;
+ if (*option_name == '-')
+ option_name++;
if (strcmp (OPTION_VENDOR, option_name) == 0)
{
@@ -480,7 +482,8 @@ parse_options_callback (const gchar *op
g_strdup (value));
}
- else if (strcmp (OPTION_MODE, option_name) == 0)
+ else if (strcmp (OPTION_MODE, option_name) == 0 ||
+ strcmp ("m", option_name) == 0)
{
unsigned long ul;
char *end;

View file

@ -1 +1 @@
2ee84d0de753d4052011714c20d6efae desktop-file-utils-0.13.tar.gz
2fe8ebe222fc33cd4a959415495b7eed desktop-file-utils-0.15.tar.gz