lib/unpack.c: fix the logic of an inverted conditional.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090818215919-xv54d9a2vobsizlr
This commit is contained in:
Juan RP 2009-08-18 23:59:19 +02:00
parent d7ff3ea85a
commit 62b514f6e1

View File

@ -324,8 +324,7 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg,
strcmp("./REMOVE", archive_entry_pathname(entry)) &&
strcmp("./files.plist", archive_entry_pathname(entry)) &&
strcmp("./props.plist", archive_entry_pathname(entry))) {
if (((flags & XBPS_FLAG_FORCE) == 0) ||
essential == false) {
if (((flags & XBPS_FLAG_FORCE) == 0) && !essential) {
eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE;
eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER;
}