xbps_remove_pkg: return proper error if metadata files cannot be removed.
This commit is contained in:
parent
e75a524ee3
commit
20bb1af589
@ -121,6 +121,8 @@ remove_pkg_metadata(const char *pkgname,
|
|||||||
(void)closedir(dirp);
|
(void)closedir(dirp);
|
||||||
rv = rmdir(metadir);
|
rv = rmdir(metadir);
|
||||||
free(metadir);
|
free(metadir);
|
||||||
|
if (rv != 0)
|
||||||
|
rv = errno;
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user