+2005-10-16 Tollef Fog Heen <tfheen@err.no>
+
+ * pkg.c (get_package_quiet): Add get_package_quiet which is just
+ the same as get_package except it sets warn to false.
+
+ * pkg.h: Add prototype for get_package_quiet.
+
+ * main.c (main): Add --short-errors flag to suppress most of the
+ output when a module is not found.
+
2005-10-01 Tollef Fog Heen <tfheen@err.no>
* pkg.c (packages_get_var): Don't try to chop if string length is
int want_other_cflags = 0;
int want_list = 0;
int want_static_lib_list = ENABLE_INDIRECT_DEPS;
+ int want_short_errors = 0;
int result;
int want_uninstalled = 0;
char *variable_name = NULL;
"output all linker flags" },
{ "static", 0, POPT_ARG_NONE, &want_static_lib_list, 0,
"output linker flags for static linking" },
+ { "short-errors", 0, POPT_ARG_NONE, &want_short_errors, 0,
+ "print short errors" },
{ "libs-only-l", 0, POPT_ARG_NONE, &want_l_libs, 0,
"output -l flags" },
{ "libs-only-other", 0, POPT_ARG_NONE, &want_other_libs, 0,
Package *req;
RequiredVersion *ver = iter->data;
- req = get_package (ver->name);
+ if (want_short_errors)
+ req = get_package_quiet (ver->name);
+ else
+ req = get_package (ver->name);
if (req == NULL)
{
return internal_get_package (name, TRUE, TRUE);
}
+Package *
+get_package_quiet (const char *name)
+{
+ return internal_get_package (name, FALSE, TRUE);
+}
+
static GSList*
string_list_strip_duplicates (GSList *list)
{
};
Package *get_package (const char *name);
+Package *get_package_quiet (const char *name);
char * package_get_l_libs (Package *pkg);
char * packages_get_l_libs (GSList *pkgs);
char * package_get_L_libs (Package *pkg);