diff --git a/bin/xbps-repo/main.c b/bin/xbps-repo/main.c index 164ff9245f..0a9a133f70 100644 --- a/bin/xbps-repo/main.c +++ b/bin/xbps-repo/main.c @@ -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 diff --git a/lib/repository.c b/lib/repository.c index a272a0b39a..537688fcdc 100644 --- a/lib/repository.c +++ b/lib/repository.c @@ -201,7 +201,7 @@ xbps_unregister_repository(const char *uri) } } else { /* Not found. */ - errno = ENODEV; + errno = ENOENT; } prop_object_release(dict);