pacman/scripts
Allan McRae f170a94c13 makepkg: make $pkgdir non-accessible during build()
The idea of having separate build() and package() functions is that
build() is run as a normal uses and package() as (fake)root.  Any
files placed in $pkgdir during build() can have the wrong permissions.

Restrict access to $pkgdir during build() - unless there is no package()
function.

Also, set $pkgdir to something "useful" during build().  For split
packages, this uses "<path>/pkg/$pkgbase" because it is not obvious
which $pkgdir is being referred to.

Signed-off-by: Allan McRae <allan@archlinux.org>
2013-02-07 10:48:11 +10:00
..
library parseopts: remove superfluous continue/shift statements 2013-01-03 12:03:09 +10:00
po Merge branch 'maint' 2012-05-20 17:41:21 -05:00
.gitignore rankmirrors: move to contrib/ 2012-04-24 20:33:08 -04:00
Makefile.am makepkg: use --apparent-size when du supports it 2013-01-03 12:03:10 +10:00
makepkg.sh.in makepkg: make $pkgdir non-accessible during build() 2013-02-07 10:48:11 +10:00
pacman-db-upgrade.sh.in Update copyright year for 2013 2013-01-03 12:03:09 +10:00
pacman-key.sh.in pacman-key: reduce verbosity of --populate 2013-01-04 21:49:38 +10:00
pacman-optimize.sh.in Update copyright year for 2013 2013-01-03 12:03:09 +10:00
pkgdelta.sh.in pkgdelta: avoid use of eval and IFS manipulation 2012-12-14 12:35:34 +10:00
repo-add.sh.in Add a -n option to repo-add to only add new packages 2013-01-03 12:03:10 +10:00