~ubuntu-branches/ubuntu/lucid/gnupg2/lucid-updates

« back to all changes in this revision

Viewing changes to g10/trustdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2009-11-07 13:12:03 UTC
  • mfrom: (1.1.13 upstream) (7.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091107131203-vgyndyfgtwch7v61
Tags: 2.0.13-1ubuntu1
* Merge with Debian testing (lp: #477491). Remaining changes:
  - Build-depend on libreadline-dev instead of libreadline5-dev.
  - debian/gnupg2.dev: udev rules to set ACLs on SCM smartcard readers.
  - debian/rules: Call dh_installudev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
}
409
409
 
410
410
void
 
411
how_to_fix_the_trustdb ()
 
412
{
 
413
  const char *name = trustdb_args.dbname;
 
414
 
 
415
  if (!name)
 
416
    name = "trustdb.gpg";
 
417
 
 
418
  log_info (_("You may try to re-create the trustdb using the commands:\n"));
 
419
  log_info ("  cd %s\n", default_homedir ());
 
420
  log_info ("  gpg2 --export-ownertrust > otrust.tmp\n");
 
421
#ifdef HAVE_W32_SYSTEM
 
422
  log_info ("  del %s\n", name);
 
423
#else
 
424
  log_info ("  rm %s\n", name);
 
425
#endif
 
426
  log_info ("  gpg2 --import-ownertrust < otrust.tmp\n");
 
427
  log_info (_("If that does not work, please consult the manual\n"));
 
428
}
 
429
 
 
430
 
 
431
void
411
432
init_trustdb()
412
433
{
413
434
  int level = trustdb_args.level;