diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-03 14:23:04 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-06 01:51:06 +0200 |
commit | 4dcdbcaf1eff0962522a04710817156ce4d44b9e (patch) | |
tree | 2ca3864877ed243ff847f36457f84e3cc456aefb | |
parent | 1489f754197a7a013e17328f9cb2fb3d2e5bdfe9 (diff) |
makechrootpkg: Ensure we have a writable PKGBUILD
For pkgver updates.
-rw-r--r-- | makechrootpkg.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index 0d93c2e..862e6bc 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -247,6 +247,11 @@ shopt -s nullglob ln -sft /srcdest /srcdest_host/* ln -sft /startdir /startdir_host/* +# Keep PKGBUILD writable for pkgver() +rm /startdir/PKGBUILD* +cp /startdir_host/PKGBUILD* /startdir +chown nobody /startdir/PKGBUILD* + cd /startdir sudo -u nobody makepkg $makepkg_args || exit 1 |