xbps_unregister_repository: return ENOENT if not found, not ENODEV.

--HG--
extra : convert_revision : c1be34bc1840ac351e8e2d301e2c71d247f0ea9c
This commit is contained in:
Juan RP 2009-02-13 00:18:28 +01:00
parent 5b841b8a7d
commit d420d00081
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -201,7 +201,7 @@ xbps_unregister_repository(const char *uri)
}
} else {
/* Not found. */
errno = ENODEV;
errno = ENOENT;
}
prop_object_release(dict);