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:
Juan RP
2015-02-26 19:37:46 +01:00
parent 8de52caa2f
commit b6b446d32e
4 changed files with 37 additions and 13 deletions

View File

@@ -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

View File

@@ -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