Give a more fitting error message when mime_dir does not exist. 2009-03-09 Martin von Gagern References: https://bugs.gentoo.org/228885 Index: shared-mime-info-0.60/update-mime-database.c =================================================================== --- shared-mime-info-0.60.orig/update-mime-database.c +++ shared-mime-info-0.60/update-mime-database.c @@ -3386,6 +3386,12 @@ int main(int argc, char **argv) package_dir = g_strconcat(mime_dir, "/packages", NULL); + if (access(mime_dir, F_OK)) + { + g_warning(_("Directory '%s' does not exist!\n"), package_dir); + return EXIT_FAILURE; + } + if (access(mime_dir, W_OK)) { g_warning(_("%s: I don't have write permission on %s.\n"