From a9dcee01b4d4d39d18db60092533dc2985d1c2d4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 8 Mar 2018 18:55:41 +0300 Subject: Prefer dir repository type over others for pkg-build --- tests/pkg-build.test | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/pkg-build.test b/tests/pkg-build.test index 03ed040..f5b3dee 100644 --- a/tests/pkg-build.test +++ b/tests/pkg-build.test @@ -1450,7 +1450,14 @@ rep_fetch += -d cfg --auth all --trust-yes 2>! : dir-rep : { - $clone_root_cfg && $rep_add $src/libfoo-1.1.0 --type dir && $rep_fetch; + : preferred + : + : Test that dir (local) repository is preferred over non-dir local repository + : that comes first. + : + $clone_root_cfg; + $rep_fetch $rep/t4a; + $rep_add $src/libfoo-1.1.0 --type dir && $rep_fetch "dir:$src/libfoo-1.1.0"; $* libfoo 2>>~%EOE%; using libfoo/1.1.0 (external) -- cgit v1.1