xbps-uhelper: sync error messages with reality.
This commit is contained in:
parent
b909e8edc3
commit
725ef2472d
@ -1,5 +1,5 @@
|
|||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2008-2014 Juan Romero Pardines.
|
* Copyright (c) 2008-2015 Juan Romero Pardines.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -187,7 +187,7 @@ main(int argc, char **argv)
|
|||||||
version = xbps_pkg_version(argv[1]);
|
version = xbps_pkg_version(argv[1]);
|
||||||
if (version == NULL) {
|
if (version == NULL) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Invalid string, expected <string>-<version>\n");
|
"Invalid string, expected <string>-<version>_<revision>\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
printf("%s\n", version);
|
printf("%s\n", version);
|
||||||
@ -199,7 +199,7 @@ main(int argc, char **argv)
|
|||||||
pkgname = xbps_pkg_name(argv[1]);
|
pkgname = xbps_pkg_name(argv[1]);
|
||||||
if (pkgname == NULL) {
|
if (pkgname == NULL) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Invalid string, expected <string>-<version>\n");
|
"Invalid string, expected <string>-<version>_<revision>\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
printf("%s\n", pkgname);
|
printf("%s\n", pkgname);
|
||||||
|
Loading…
Reference in New Issue
Block a user