xbps_unregister_repository: return ENOENT if not found, not ENODEV.
--HG-- extra : convert_revision : c1be34bc1840ac351e8e2d301e2c71d247f0ea9c
This commit is contained in:
parent
5b841b8a7d
commit
d420d00081
2 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,7 @@ main(int argc, char **argv)
|
|||
exit(EXIT_FAILURE);
|
||||
|
||||
if (!xbps_unregister_repository(dpkgidx)) {
|
||||
if (errno == ENODEV)
|
||||
if (errno == ENOENT)
|
||||
printf("Repository '%s' not actually "
|
||||
"registered.\n", dpkgidx);
|
||||
else
|
||||
|
|
|
@ -201,7 +201,7 @@ xbps_unregister_repository(const char *uri)
|
|||
}
|
||||
} else {
|
||||
/* Not found. */
|
||||
errno = ENODEV;
|
||||
errno = ENOENT;
|
||||
}
|
||||
|
||||
prop_object_release(dict);
|
||||
|
|
Loading…
Reference in a new issue