libxbps: properly detect obsolete files with files being between pkgs.
120 test cases now successfully pass, and all known issues about pkg updates that move files between them should be gone (hopefully).
This commit is contained in:
@@ -315,7 +315,7 @@ update_file_timestamps_body() {
|
||||
|
||||
atf_check_equal "$expected" "$result"
|
||||
|
||||
sleep 2
|
||||
sleep 1
|
||||
cd repo
|
||||
touch -f pkg_A/usr/include/gsm/gsm.h
|
||||
xbps-create -A noarch -n foo-1.1_1 -s "foo pkg" ../pkg_A
|
||||
@@ -386,6 +386,7 @@ update_move_file_body() {
|
||||
xbps-rindex -d -a repo/*.xbps
|
||||
atf_check_equal $? 0
|
||||
xbps-install -r root --repository=repo -yvd A B
|
||||
sleep 1
|
||||
cd repo
|
||||
rm ../pkg_B/usr/bin/sg
|
||||
rm ../pkg_A/usr/bin/newgrp
|
||||
|
@@ -212,7 +212,11 @@ files_move_to_dependency2_body() {
|
||||
xbps-install -r root --repository=$PWD -yvd libressl
|
||||
atf_check_equal $? 0
|
||||
|
||||
sleep 1
|
||||
rm -f ../pkg_libressl/usr/lib/libcrypto.*
|
||||
touch -f ../pkg_libcrypto/usr/lib/libcrypto.so.30
|
||||
xbps-create -A noarch -n libcrypto-1.0_2 -s "libcrypto pkg" ../pkg_libcrypto
|
||||
atf_check_equal $? 0
|
||||
xbps-create -A noarch -n libressl-1.1_1 -s "libressl pkg" --dependencies "libcrypto>=1.0" ../pkg_libressl
|
||||
atf_check_equal $? 0
|
||||
xbps-rindex -d -a $PWD/*.xbps
|
||||
|
Reference in New Issue
Block a user