From: Arch Librarian Date: Thu, 14 Jul 2005 13:05:51 +0000 (+0000) Subject: Obvious fix: X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72b5088eaebf7cee71a42394056daf2152df3cee;p=pkg-config Obvious fix: Author: jamesh Date: 2003-02-22 07:04:02 GMT Obvious fix: 2003-02-22 James Henstridge * pkg.h: add missing prototype. * main.c (main): print the url if the package is too old, to match the output of verify_package(). --- diff --git a/ChangeLog b/ChangeLog index 5207b9b..17e06d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-02-22 James Henstridge + * pkg.h: add missing prototype. + + * main.c (main): print the url if the package is too old, to match + the output of verify_package(). + * popthelp.c, poptint.h, poptconfig.c, findme.h, popt.h: * poptparse.c: expand licensing header to the version found in the Popt distribution's COPYING file. See discussion in bug 84804 for diff --git a/main.c b/main.c index 3506299..00d0a27 100644 --- a/main.c +++ b/main.c @@ -472,6 +472,10 @@ main (int argc, char **argv) req->name, req->version); + if (req->url) + verbose_error ("You may find new versions of %s at %s\n", + req->name, req->url); + return 1; } diff --git a/pkg.h b/pkg.h index 6c8cae0..92df2f9 100644 --- a/pkg.h +++ b/pkg.h @@ -74,20 +74,21 @@ struct _Package int path_position; /* used to order packages by position in path of their .pc file, lower number means earlier in path */ }; -Package *get_package (const char *name); -char * package_get_l_libs (Package *pkg); -char * packages_get_l_libs (GSList *pkgs); -char * package_get_L_libs (Package *pkg); -char * packages_get_L_libs (GSList *pkgs); -char * package_get_other_libs (Package *pkg); -char * packages_get_other_libs (GSList *pkgs); -char * packages_get_all_libs (GSList *pkgs); -char * package_get_I_cflags (Package *pkg); -char * packages_get_I_cflags (GSList *pkgs); -char * package_get_other_cflags (Package *pkg); -char * packages_get_all_cflags (GSList *pkgs); -char * package_get_var (Package *pkg, - const char *var); +Package *get_package (const char *name); +char * package_get_l_libs (Package *pkg); +char * packages_get_l_libs (GSList *pkgs); +char * package_get_L_libs (Package *pkg); +char * packages_get_L_libs (GSList *pkgs); +char * package_get_other_libs (Package *pkg); +char * packages_get_other_libs (GSList *pkgs); +char * packages_get_all_libs (GSList *pkgs); +char * package_get_I_cflags (Package *pkg); +char * packages_get_I_cflags (GSList *pkgs); +char * package_get_other_cflags (Package *pkg); +char * packages_get_other_cflags (GSList *pkgs); +char * packages_get_all_cflags (GSList *pkgs); +char * package_get_var (Package *pkg, + const char *var); char * packages_get_var (GSList *pkgs, const char *var);