Skip to content

Commit 2ef5693

Browse files
committed
bin/xbps-remve: when cleaning the cache keep installed versions
Fixes: #279
1 parent 84f6a1b commit 2ef5693

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/xbps-remove/clean-cache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ cleaner_cb(struct xbps_handle *xhp, xbps_object_t obj,
102102
pkgd = xbps_pkgdb_get_pkg(xhp, binpkgver);
103103
} else {
104104
pkgd = xbps_rpool_get_pkg(xhp, binpkgver);
105+
if (!pkgd)
106+
pkgd = xbps_pkgdb_get_pkg(xhp, binpkgver);
105107
}
106108
if (pkgd) {
107109
xbps_dictionary_get_cstring_nocopy(pkgd,

0 commit comments

Comments
 (0)