From 74bcab9dfa50647dd6615f261f2c2bc9f5a38951 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 13 Feb 2016 16:30:31 +0200 Subject: Offer in pkg-build to drop prerequisite packages that are no longer necessary This can happen if a package that is being upgraded/downgraded changes its dependencies. --- tests/test.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'tests/test.sh') diff --git a/tests/test.sh b/tests/test.sh index 2dcd6f7..e4d962b 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1204,6 +1204,34 @@ test cfg-fetch test pkg-build -y libbaz stat libfoo "configured 1.1.0" +# drop prerequisites on downgrade +# +test rep-create repository/1/satisfy/t5 +test cfg-create --wipe +test cfg-add $rep/satisfy/t2 +test cfg-fetch + +test pkg-build -y libbar +stat libfoo "configured 1.0.0" +stat libbar "configured 1.0.0 hold_package" + +test cfg-add $rep/satisfy/t5 +test cfg-fetch + +test pkg-build -y libbar +stat libfoo "available 1.0.0" +stat libbar "configured 1.2.0 hold_package" + +#@@test pkg-build -y libbar/1.0.0 libfoo +test pkg-build -y libbar/1.0.0 +test pkg-build -y libfoo +stat libfoo "configured 1.0.0 hold_package" +stat libbar "configured 1.0.0 hold_package hold_version; available 1.2.0" + +test pkg-build -y libbar +stat libfoo "configured 1.0.0 hold_package" +#@@stat libbar "configured 1.2.0 hold_package" +stat libbar "configured 1.2.0 hold_package hold_version" ## ## pkg-drop -- cgit v1.1