xbps-install(1): added -I, --ignore-file-conflicts.

If set it will continue with the transaction and will
just print what are the conflicting files without returning
EEXIST.

This is a temporary solution for void where there are still
some packages with conflicting files (qt5-host-tools vs qt5-tools-devel).

With input by @duncaen
This commit is contained in:
Juan RP
2019-06-21 15:21:58 +02:00
parent 9a72aaf577
commit 4f717dc597
6 changed files with 49 additions and 25 deletions

View File

@@ -563,6 +563,10 @@ conflicting_files_in_transaction_body() {
xbps-install -r root -C null.conf --repository=$PWD/some_repo -ydv A B
# EEXIST
atf_check_equal $? 17
# ignored file conflicts
xbps-install -r root -C null.conf --repository=$PWD/some_repo -Iydv A B
atf_check_equal $? 0
}
atf_test_case obsolete_dir