~ubuntu-branches/ubuntu/oneiric/desktop-file-utils/oneiric

« back to all changes in this revision

Viewing changes to src/update-desktop-database.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-03 14:52:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103145204-jbpthc6vzm1gu2w5
Tags: 0.17-0ubuntu1
* New upstream release
* debian/source:
  - Use source version 3.0
* debian/rules:
  - Stop using simple-patchsys.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#define TEMP_CACHE_FILENAME_PREFIX ".mimeinfo.cache.XXXXXX"
45
45
 
46
46
#define udd_print(...) if (!quiet) g_printerr (__VA_ARGS__)
47
 
#define udd_verbose_print(...) if (verbose) g_printerr (__VA_ARGS__)
 
47
#define udd_verbose_print(...) if (!quiet && verbose) g_printerr (__VA_ARGS__)
48
48
 
49
49
static FILE *open_temp_cache_file (const char  *dir,
50
50
                                   char       **filename,
298
298
       desktop_file = desktop_file->next)
299
299
    {
300
300
      g_string_append (list, (const char *) desktop_file->data);
301
 
 
302
 
      if (desktop_files->next != NULL)
303
 
        g_string_append_c (list, ';');
 
301
      g_string_append_c (list, ';');
304
302
    }
305
303
  g_string_append_c (list, '\n');
306
304
 
416
414
 
417
415
  const GOptionEntry options[] =
418
416
   {
 
417
     { "quiet", 'q', 0, G_OPTION_ARG_NONE, &quiet,
 
418
       N_("Do not display any information about processing and "
 
419
          "updating progress"), NULL},
 
420
 
419
421
     { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
420
422
       N_("Display more information about processing and updating progress"),
421
423
       NULL},
422
424
 
423
 
     { "quiet", 'q', 0, G_OPTION_ARG_NONE, &quiet,
424
 
       N_("Don't display any information about about processing and "
425
 
          "updating progress"), NULL},
426
 
 
427
425
     { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &desktop_dirs,
428
426
       NULL, N_("[DIRECTORY...]") },
429
427
     { NULL }
430
428
   };
431
429
 
432
430
  context = g_option_context_new ("");
 
431
  g_option_context_set_summary (context, _("Build cache database of MIME types handled by desktop files."));
433
432
  g_option_context_add_main_entries (context, options, NULL);
434
433
 
435
434
  desktop_dirs = NULL;