pacman/scripts/libmakepkg/lint_pkgbuild
Eli Schwartz d626a17ef9 makepkg: make per-package files containing '$pkgname' consistently work
Extracting function variables containing arbitrarily scoped variables of
arbitrary nature is a disaster, but let's at least cover the common case
of using the actual '$pkgname' in an install/changelog file. It's the
odd case of actually being basically justified use of disambiguating
between the same variable used in multiple different split packages...
and also, --printsrcinfo already uses and overwrites the variable
'pkgname' in pkgbuild_extract_to_srcinfo, so this "works" in .SRCINFO
but doesn't work in .src.tar.gz

It doesn't work in lint_pkgbuild either, but in that case the problem is
being too permissive, not too restrictive -- we might end up checking
the same file twice, and printing that it is missing twice.

Fixes FS#64932

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2020-01-27 17:53:50 +10:00
..
arch.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
arch_specific.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
backup.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
changelog.sh.in makepkg: make per-package files containing '$pkgname' consistently work 2020-01-27 17:53:50 +10:00
checkdepends.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
conflicts.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
depends.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
epoch.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
fullpkgver.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
install.sh.in makepkg: make per-package files containing '$pkgname' consistently work 2020-01-27 17:53:50 +10:00
makedepends.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
meson.build libmakepkg: lint disallowed architecture specific variables 2019-01-31 15:03:28 +10:00
optdepends.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
options.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
package_function.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
package_function_variable.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
pkgbase.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
pkglist.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
pkgname.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
pkgrel.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
pkgver.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
provides.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
source.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
util.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
variable.sh.in Update copyright years 2019-10-23 22:06:54 +10:00