diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-23 14:31:36 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-23 14:31:36 +0300 |
commit | c46c56e0a28742e6a530503ea839c7a4546e3e16 (patch) | |
tree | da2158b77d4a776d444441dca75f7fc88023741e /testdata/repos | |
parent | EmptyGlobalAssignment: check for empty global assignments (diff) | |
download | pkgcheck-c46c56e0a28742e6a530503ea839c7a4546e3e16.tar.gz pkgcheck-c46c56e0a28742e6a530503ea839c7a4546e3e16.tar.bz2 pkgcheck-c46c56e0a28742e6a530503ea839c7a4546e3e16.zip |
SelfAssignment: check for global scope self assignments
Resolves: https://github.com/pkgcore/pkgcheck/issues/626
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata/repos')
-rw-r--r-- | testdata/repos/standalone/MetadataVarCheck/SelfAssignment/SelfAssignment-0.ebuild | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testdata/repos/standalone/MetadataVarCheck/SelfAssignment/SelfAssignment-0.ebuild b/testdata/repos/standalone/MetadataVarCheck/SelfAssignment/SelfAssignment-0.ebuild new file mode 100644 index 00000000..1abcf8b0 --- /dev/null +++ b/testdata/repos/standalone/MetadataVarCheck/SelfAssignment/SelfAssignment-0.ebuild @@ -0,0 +1,21 @@ +DESCRIPTION="Ebuild with various self assignments" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" + +RDEPEND="${RDEPEND}" # FAIL +RDEPEND="$RDEPEND" # FAIL +RDEPEND=${RDEPEND} # FAIL +RDEPEND=$RDEPEND # FAIL +RDEPEND="${RDEPEND} +" # FAIL +RDEPEND=" + ${RDEPEND}" # FAIL +RDEPEND=" + ${RDEPEND} +" # FAIL + +RDEPEND+=" ${RDEPEND}" # OK (+=) +RDEPEND="${RDEPEND} stub/stub1" # OK (something else) +RDEPEND="stub/stub1 ${RDEPEND}" # OK (something else) +RDEPEND="${RDEPEND:=stub/stub1}" # OK (:=) |