From f5744b0d3d3289128d56a0de06b0111e2839ef24 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 7 Dec 2009 05:27:11 +0100 Subject: [PATCH] xbps_remove_pkg: when removing dirs there is no need to look for the "keep" obj anymore. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091207042711-g3raluagagj9b4au --- lib/remove.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/remove.c b/lib/remove.c index ef9f5bbf..f415f07e 100644 --- a/lib/remove.c +++ b/lib/remove.c @@ -40,7 +40,6 @@ remove_pkg_files(prop_dictionary_t dict) prop_array_t array; prop_object_iterator_t iter; prop_object_t obj; - prop_bool_t bobj; const char *file, *sha256; char *path = NULL; int flags = 0, rv = 0; @@ -151,10 +150,6 @@ dirs: return EINVAL; while ((obj = prop_object_iterator_next(iter))) { - if ((bobj = prop_dictionary_get(obj, "keep")) != NULL) { - /* Skip permanent directory. */ - continue; - } if (!prop_dictionary_get_cstring_nocopy(obj, "file", &file)) { prop_object_iterator_release(iter); return EINVAL;