index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2010-09-29 21:54:31 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-05 10:58:21 -0500 |
commit | f2296aab89b12fe49204fba8f62dc8dd2d9e05eb (patch) | |
tree | 4cae483d57ca36391e5cbdcc3b08c173462e1ee4 | |
parent | 022ec3dbb76686337969cee6e14113b397987cfa (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 8 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ed1380d1..9bcd4460 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -972,10 +972,14 @@ check_package() { fi done - # check for references to the build directory - if find "${pkgdir}" -type f -exec grep -q "${srcdir}" {} +; then + # check for references to the build and package directory + if find "${pkgdir}" -type f -exec grep -q -I "${srcdir}" {} +; then warning "$(gettext "Package contains reference to %s")" "\$srcdir" fi + if find "${pkgdir}" -type f -exec grep -q -I "${pkgdir}" {} +; then + warning "$(gettext "Package contains reference to %s")" "\$pkgdir" + fi + } create_package() { |