xbps_remove_pkg: return proper error if metadata files cannot be removed.

This commit is contained in:
Juan RP 2012-06-09 10:05:29 +02:00
parent e75a524ee3
commit 20bb1af589

View File

@ -121,6 +121,8 @@ remove_pkg_metadata(const char *pkgname,
(void)closedir(dirp);
rv = rmdir(metadir);
free(metadir);
if (rv != 0)
rv = errno;
return rv;
}