diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-01-14 21:44:13 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-01-14 21:44:13 +0200 |
commit | 1ed31be4c67c2a18c90235f306967169cba31839 (patch) | |
tree | 050aa70198451876578774cbcf44ebaa6a151528 /testdata | |
parent | SandboxCallCheck: new check for invalid sandbox calls (diff) | |
download | pkgcheck-1ed31be4c67c2a18c90235f306967169cba31839.tar.gz pkgcheck-1ed31be4c67c2a18c90235f306967169cba31839.tar.bz2 pkgcheck-1ed31be4c67c2a18c90235f306967169cba31839.zip |
DependencyMoved: show better error for dependency on pkgmove
Catch cases where we depend on pkgmoved package, and instead of showing
NonexistentDeps and NonsolvableDepsIn* errors, show DependencyMoved
result, with nice and simple suggestion on action to take.
Resolves: https://github.com/pkgcore/pkgcheck/issues/649
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
3 files changed, 12 insertions, 0 deletions
diff --git a/testdata/data/repos/visibility/VisibilityCheck/DependencyMoved/expected.json b/testdata/data/repos/visibility/VisibilityCheck/DependencyMoved/expected.json new file mode 100644 index 00000000..c83c44a1 --- /dev/null +++ b/testdata/data/repos/visibility/VisibilityCheck/DependencyMoved/expected.json @@ -0,0 +1,3 @@ +{"__class__": "DependencyMoved", "category": "DependencyMoved", "package": "DependencyMoved", "version": "0", "attr": "bdepend", "source": ">=stub/old-name-2.71-r6:2.71", "target": ">=stub/stable-2.71-r6:2.71"} +{"__class__": "DependencyMoved", "category": "DependencyMoved", "package": "DependencyMoved", "version": "0", "attr": "rdepend", "source": "stub/old-name:2", "target": "stub/stable:2"} +{"__class__": "DependencyMoved", "category": "DependencyMoved", "package": "DependencyMoved", "version": "0", "attr": "rdepend", "source": "~stub/old-name-2", "target": "~stub/stable-2"} diff --git a/testdata/repos/visibility/DependencyMoved/DependencyMoved/DependencyMoved-0.ebuild b/testdata/repos/visibility/DependencyMoved/DependencyMoved/DependencyMoved-0.ebuild new file mode 100644 index 00000000..99509a99 --- /dev/null +++ b/testdata/repos/visibility/DependencyMoved/DependencyMoved/DependencyMoved-0.ebuild @@ -0,0 +1,8 @@ +EAPI=7 +DESCRIPTION="Ebuild with dependency on moved package" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64" +RDEPEND="stub/old-name:2 ~stub/old-name-2" +BDEPEND=">=stub/old-name-2.71-r6:2.71" diff --git a/testdata/repos/visibility/profiles/updates/1Q-2024 b/testdata/repos/visibility/profiles/updates/1Q-2024 new file mode 100644 index 00000000..518e4bf5 --- /dev/null +++ b/testdata/repos/visibility/profiles/updates/1Q-2024 @@ -0,0 +1 @@ +move stub/old-name stub/stable |