From d0e478348ab1362e22e426b2b3dbb3becf2d6a24 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 1 Aug 2023 21:06:05 +0300 Subject: Fix pkg-fetch which failed to re-fetch same package version in --replace mode --- tests/pkg-fetch.testscript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/pkg-fetch.testscript') diff --git a/tests/pkg-fetch.testscript b/tests/pkg-fetch.testscript index 7d32523..5046c5d 100644 --- a/tests/pkg-fetch.testscript +++ b/tests/pkg-fetch.testscript @@ -160,7 +160,14 @@ $* libfoo/1.0.0 2>>/EOE != 0 $* -e $src/t1/libfoo-1.0.0.tar.gz 2>'using libfoo/1.0.0 (external)'; $pkg_status libfoo/1.0.0 1>'libfoo fetched 1.0.0'; - $pkg_purge libfoo 2>'purged libfoo/1.0.0' + $* libfoo/1.1.0 2>'fetched libfoo/1.1.0'; + $pkg_unpack libfoo 2>'unpacked libfoo/1.1.0'; + test -d cfg/libfoo-1.1.0; + $* libfoo/1.1.0 2>'fetched libfoo/1.1.0'; + test -d cfg/libfoo-1.1.0 == 1; + $pkg_status libfoo/1.1.0 1>'libfoo fetched 1.1.0'; + + $pkg_purge libfoo 2>'purged libfoo/1.1.0' } : purge-existing -- cgit v1.1