xbps_purge_pkg: if state is not XBPS_PKG_STATE_CONFIG_FILES, just return 0.
This commit is contained in:
parent
fdec663855
commit
99f3d846de
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user