xbps-cmpver: fix usage.
--HG-- extra : convert_revision : 450fc45a76cb4dc24f3bf4c8f4cba747ed05d653
This commit is contained in:
parent
77debbc7c4
commit
9a10b636cc
|
@ -75,9 +75,9 @@ int chkpkg(const char *a0, const char *b0)
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc<3) {
|
||||
printf("Usage: ./xbps-cmpver [old] [new]\n");
|
||||
printf(" ./xbpks-cmpver foo-1.2 foo-2.2 # $? = 1\n");
|
||||
printf(" ./xbpks-cmpver foo-1.2 foo-1.2 # $? = 0\n");
|
||||
printf("Usage: xbps-cmpver [old] [new]\n");
|
||||
printf(" xbpks-cmpver foo-1.2 foo-2.2 # $? = 1\n");
|
||||
printf(" xbpks-cmpver foo-1.2 foo-1.2 # $? = 0\n");
|
||||
return 1;
|
||||
}
|
||||
return (chkpkg(argv[1], argv[2]) > 0)?1:0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user