index 6db57174cf97c0d65fca0811946ad44eed3eb56f..4396017fac4b0fe199ce1c95c605bb2d34a7ac60 100644 (file)
/*
- * Authors:
+ * Author:
* Ted Gould <ted@gould.cx>
*
- * Copyright (C) 2004 Authors
+ * Copyright (C) 2006 Johan Engelen, johan@shouraizou.nl
+ * Copyright (C) 2004 Author
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <glibmm/i18n.h>
-
#include "config.h"
#include "path-prefix.h"
-
#include "dependency.h"
#include "db.h"
g_free(orig_path);
return TRUE;
}
+ // give it a 2nd try with ".exe" added
+ gchar * final_name_exe = g_strdup_printf ("%s.exe", final_name);
+ if (Glib::file_test(final_name_exe, filetest)) {
+ g_free(final_name);
+ g_free(final_name_exe);
+ g_free(orig_path);
+ return TRUE;
+ }
g_free(final_name);
+ g_free(final_name_exe);
}
g_free(orig_path);
std::ostream &
operator<< (std::ostream &out_file, const Dependency & in_dep)
{
- out_file << _("Dependency::") << '\n';
+ out_file << _("Dependency:") << '\n';
out_file << _(" type: ") << _(in_dep._type_str[in_dep._type]) << '\n';
out_file << _(" location: ") << _(in_dep._location_str[in_dep._location]) << '\n';
out_file << _(" string: ") << in_dep._string << '\n';