xbps-bin: while installing binpkgs, detect properly in some cases its return value.
--HG-- extra : convert_revision : 89cb21eed183c1d9702613690fb7f48f8cceb5e2
This commit is contained in:
parent
2cfb55735b
commit
eb2e824a33
2 changed files with 8 additions and 9 deletions
|
@ -105,8 +105,8 @@ xbps_install_binary_pkg(const char *pkgname, const char *destdir, int flags)
|
|||
*/
|
||||
rv = xbps_callback_array_iter_in_repolist(install_binpkg_repo_cb,
|
||||
(void *)&cb);
|
||||
if (rv == 0 && errno == EAGAIN)
|
||||
return ENOENT;
|
||||
if (rv == 0 && errno != 0)
|
||||
return errno;
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue