From 18e21c8082f37816cedb6b0621264364f5568673 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 3 Aug 2023 22:25:05 +0300 Subject: GlobDistdir: check for glob usage with DISTDIR Resolves: https://github.com/pkgcore/pkgcheck/issues/605 Signed-off-by: Arthur Zamarin --- .../standalone/GlobCheck/GlobDistdir/GlobDistdir-0.ebuild | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testdata/repos/standalone/GlobCheck/GlobDistdir/GlobDistdir-0.ebuild (limited to 'testdata/repos') diff --git a/testdata/repos/standalone/GlobCheck/GlobDistdir/GlobDistdir-0.ebuild b/testdata/repos/standalone/GlobCheck/GlobDistdir/GlobDistdir-0.ebuild new file mode 100644 index 00000000..a0480fa7 --- /dev/null +++ b/testdata/repos/standalone/GlobCheck/GlobDistdir/GlobDistdir-0.ebuild @@ -0,0 +1,15 @@ +DESCRIPTION="Ebuild with unsafe glob around DISTDIR" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" + +src_install() { + doins "${DISTDIR}"/foo-*.bar # bad + doins "${DISTDIR}"/"${DISTDIR}"/foo-?.bar # bad + doins "${DISTDIR}"/foo-?-*.bar # bad + + doins "${T}"/foo-*.bar # not unsafe dir + doins "${DISTDIR}"/foo-1.bar # no glob + doins "${DISTDIR}"/"foo-*.bar" # quoted + doins "${DISTDIR}"/'foo-*.bar' # quoted +} -- cgit v1.2.3-65-gdbad