diff options
author | Allan McRae <allan@archlinux.org> | 2009-10-25 04:57:20 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-12-14 06:22:34 +0100 |
commit | b805fe58ae8e762f2d663cb6416005521b76e182 (patch) | |
tree | 0b47bd255a7aa18e9b6dc7139517311c24c96316 /scripts | |
parent | a2c9cbdbdc8ca1ad1653fa42eb4b7571bfe744ec (diff) | |
download | pacman-b805fe58ae8e762f2d663cb6416005521b76e182.tar.gz pacman-b805fe58ae8e762f2d663cb6416005521b76e182.tar.xz |
makepkg: check for references to build root in package
Add a check that the package does not contain references to the
folder it was built in.
Fixes FS#14751
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ceaa8a65..ba2758ba 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -956,6 +956,11 @@ check_package() { warning "$(gettext "Invalid backup entry : %s")" "$file" fi done + + # check for references to the build directory + if grep -R "${srcdir}" "${pkgdir}" &>/dev/null; then + warning "$(gettext "Package contains reference to %s")" "\$srcdir" + fi } create_package() { |