diff --git a/bin/xbps-checkvers/main.c b/bin/xbps-checkvers/main.c index e4667a7c..121114fc 100644 --- a/bin/xbps-checkvers/main.c +++ b/bin/xbps-checkvers/main.c @@ -718,7 +718,7 @@ main(int argc, char **argv) free(tmp); } - rcv.cachefile = xbps_xasprintf("%s/.xbps-checkvers.plist", rcv.distdir); + rcv.cachefile = xbps_xasprintf("%s/.xbps-checkvers-0.58.plist", rcv.distdir); argc -= optind; argv += optind; diff --git a/tests/xbps/xbps-checkvers/checkvers_test.sh b/tests/xbps/xbps-checkvers/checkvers_test.sh index 1b17825b..0d45ff9c 100755 --- a/tests/xbps/xbps-checkvers/checkvers_test.sh +++ b/tests/xbps/xbps-checkvers/checkvers_test.sh @@ -476,21 +476,21 @@ version=1.0 revision=1 } EOF - ln -s A void-packages/srcpkgs/A-subpkg - ln -s A void-packages/srcpkgs/B-subpkg + ln -s A void-packages/srcpkgs/B + ln -s A void-packages/srcpkgs/C cd repo - xbps-create -A noarch -n A-subpkg-1.1_1 -s "A-subpkg pkg" ../pkg_A + xbps-create -A noarch -n B-1.1_1 -s "B pkg" ../pkg_A atf_check_equal $? 0 xbps-rindex -d -a $PWD/*.xbps atf_check_equal $? 0 cd .. - out=$(xbps-checkvers -i -R $PWD/repo -D $PWD/void-packages -sm A-subpkg) + out=$(xbps-checkvers -i -R $PWD/repo -D $PWD/void-packages -sm B) atf_check_equal $? 0 - atf_check_equal "$out" "A 1.1_1 1.0_1 A-subpkg $PWD/repo" + atf_check_equal "$out" "A 1.1_1 1.0_1 B $PWD/repo" - out=$(xbps-checkvers -i -R repo -D $PWD/void-packages -sm B-subpkg) + out=$(xbps-checkvers -i -R repo -D $PWD/void-packages -sm C) atf_check_equal $? 0 - atf_check_equal "$out" "A ? 1.0_1 B-subpkg ?" + atf_check_equal "$out" "A ? 1.0_1 C ?" out=$(xbps-checkvers -i -R repo -D $PWD/void-packages -sm A) atf_check_equal $? 0