From c4c3ab9a49d824eb64dbf3d1e1c6c079ffff92cb Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 27 Jul 2023 21:49:44 +0300 Subject: Fix inability to fetch repository containing toolchain-unsatisfied packages (GH issue #305) Note: the breaking commit is d6d72bc6e454. --- tests/pkg-verify.testscript | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'tests/pkg-verify.testscript') diff --git a/tests/pkg-verify.testscript b/tests/pkg-verify.testscript index 7e7b5f3..8057aab 100644 --- a/tests/pkg-verify.testscript +++ b/tests/pkg-verify.testscript @@ -8,6 +8,7 @@ # pkg-verify # |-- foo-1.tar.gz # |-- foo-2.tar.gz (manifest with unknown name) +# |-- libbaz-1.0.0.tar.gz (manifest with unsatisfiable toolchain constraint) # `-- not-a-package.tar.gz : valid-package @@ -137,3 +138,29 @@ $* --ignore-unknown --manifest $src/foo-2.tar.gz >>EOO %error: unable to find bootstrap.build file in package archive .+/foo-3.tar.gz% EOE } + +: compatibility +: +{ + : fail + : + $* --manifest $src/libbaz-1.0.0.tar.gz 2>>/~%EOE% != 0 + %error: unable to satisfy constraint \(build2 >= 65536.0.0\) for package .+/libbaz-1.0.0.tar.gz% + % info: available build2 version is .+% + EOE + + : success + : + $* --manifest --ignore-unknown $src/libbaz-1.0.0.tar.gz >>EOO + : 1 + name: libbaz + version: 1.0.0 + summary: libbaz + license: MIT + description: libbaz library + url: http://example.org + email: pkg@example.org + depends: * build2 >= 65536.0.0 + depends: * bpkg >= 65536.0.0 + EOO +} -- cgit v1.1