main: fix regression caused by copy-and-paste (issue #20)

feature/tap-sh
William Pitcock 2012-07-01 22:02:45 -05:00
parent 4499d272dd
commit b8645fbef2
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -640,7 +640,7 @@ main(int argc, char *argv[])
if (pkg == NULL)
return EXIT_FAILURE;
if (pkg_compare_version(pkg->version, required_module_version) == 0)
if (pkg_compare_version(pkg->version, required_exact_module_version) == 0)
return EXIT_SUCCESS;
}
@ -664,7 +664,7 @@ main(int argc, char *argv[])
if (pkg == NULL)
return EXIT_FAILURE;
if (pkg_compare_version(pkg->version, required_module_version) <= 0)
if (pkg_compare_version(pkg->version, required_max_module_version) <= 0)
return EXIT_SUCCESS;
}