xbps_purge_pkg: if state is not XBPS_PKG_STATE_CONFIG_FILES, just return 0.

This commit is contained in:
Juan RP 2010-11-21 14:34:49 +01:00
parent fdec663855
commit 99f3d846de

View File

@ -154,10 +154,8 @@ xbps_purge_pkg(const char *pkgname, bool check_state)
if ((rv = xbps_get_pkg_state_dictionary(pkgd, &state)) != 0)
goto out;
if (state != XBPS_PKG_STATE_CONFIG_FILES) {
rv = EINVAL;
if (state != XBPS_PKG_STATE_CONFIG_FILES)
goto out;
}
}
/*