xbps-checkvers: version cache file.
We do not want obsolete files from previous versions, so that we version the filename of that working version.
This commit is contained in:
parent
64aeabf3f6
commit
34a1ab51d0
@ -718,7 +718,7 @@ main(int argc, char **argv)
|
|||||||
free(tmp);
|
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;
|
argc -= optind;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
@ -476,21 +476,21 @@ version=1.0
|
|||||||
revision=1
|
revision=1
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
ln -s A void-packages/srcpkgs/A-subpkg
|
ln -s A void-packages/srcpkgs/B
|
||||||
ln -s A void-packages/srcpkgs/B-subpkg
|
ln -s A void-packages/srcpkgs/C
|
||||||
cd repo
|
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
|
atf_check_equal $? 0
|
||||||
xbps-rindex -d -a $PWD/*.xbps
|
xbps-rindex -d -a $PWD/*.xbps
|
||||||
atf_check_equal $? 0
|
atf_check_equal $? 0
|
||||||
cd ..
|
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 $? 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 $? 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)
|
out=$(xbps-checkvers -i -R repo -D $PWD/void-packages -sm A)
|
||||||
atf_check_equal $? 0
|
atf_check_equal $? 0
|
||||||
|
Loading…
Reference in New Issue
Block a user