main: make --atleast-pkgconfig-version work

pull/1/merge
William Pitcock 2011-07-26 12:05:29 -05:00
parent a872c7254b
commit a362c7e936
1 changed files with 4 additions and 1 deletions

5
main.c
View File

@ -214,7 +214,10 @@ main(int argc, const char *argv[])
if (required_pkgconfig_version != NULL) if (required_pkgconfig_version != NULL)
{ {
return 0; if (pkg_compare_version(PKGCONFIG_VERSION_EQUIV, required_pkgconfig_version) >= 0)
return EXIT_SUCCESS;
return EXIT_FAILURE;
} }
while (1) while (1)