lib/unpack.c: fix the logic of an inverted conditional.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20090818215919-xv54d9a2vobsizlr
This commit is contained in:
parent
d7ff3ea85a
commit
62b514f6e1
@ -324,8 +324,7 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg,
|
|||||||
strcmp("./REMOVE", archive_entry_pathname(entry)) &&
|
strcmp("./REMOVE", archive_entry_pathname(entry)) &&
|
||||||
strcmp("./files.plist", archive_entry_pathname(entry)) &&
|
strcmp("./files.plist", archive_entry_pathname(entry)) &&
|
||||||
strcmp("./props.plist", archive_entry_pathname(entry))) {
|
strcmp("./props.plist", archive_entry_pathname(entry))) {
|
||||||
if (((flags & XBPS_FLAG_FORCE) == 0) ||
|
if (((flags & XBPS_FLAG_FORCE) == 0) && !essential) {
|
||||||
essential == false) {
|
|
||||||
eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE;
|
eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE;
|
||||||
eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER;
|
eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user