2005-10-16 Tollef Fog Heen <tfheen@err.no>
+ * main.c (main): Try to print out all the errors and not just the
+ first.
+
* pkg.m4: Use --short-errors if it's available.
* pkg.c (get_package_quiet): Add get_package_quiet which is just
g_strstrip (str->str);
{
+ gboolean failed = FALSE;
GSList *reqs;
GSList *iter;
if (req == NULL)
{
+ failed = TRUE;
verbose_error ("No package '%s' found\n", ver->name);
- return 1;
+ goto nextiter;
}
if (!version_test (ver->comparison, req->version, ver->version))
{
+ failed = TRUE;
verbose_error ("Requested '%s %s %s' but version of %s is %s\n",
ver->name,
comparison_to_str (ver->comparison),
verbose_error ("You may find new versions of %s at %s\n",
req->name, req->url);
- return 1;
+ goto nextiter;
}
packages = g_slist_prepend (packages, req);
+ nextiter:
iter = g_slist_next (iter);
}
+
+ if (failed) {
+ return 1;
+ }
+
}
g_string_free (str, TRUE);