summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin <alucryd@gmail.com>2013-08-26 00:56:58 +0200
committerPierre Schmitz <pierre@archlinux.de>2013-11-01 20:30:52 +0100
commit4b3a6c7803d70e131e23842e2957fc81bf35f289 (patch)
tree783ab466d6ffb880fc6163e53fe6e295440afe16
parent59e348fc3c5dd086331d884a6dd76fb43a92b7eb (diff)
downloaddevtools-4b3a6c7803d70e131e23842e2957fc81bf35f289.tar.gz
devtools-4b3a6c7803d70e131e23842e2957fc81bf35f289.tar.xz
Add support for building bzr packages
Fixes FS#36654: https://bugs.archlinux.org/task/36654. Signed-off-by: Maxime Gauduin <alucryd@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--makechrootpkg.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 2309be2..a6123be 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -287,14 +287,16 @@ _chrootbuild() {
ln -sft /srcdest /srcdest_host/*
ln -sft /startdir /startdir_host/*
- # XXX: Keep svn sources writable
+ # XXX: Keep bzr and svn sources writable
# Since makepkg 4.1.1 they get checked out via cp -a, copying the symlink
for dir in /srcdest /startdir; do
- cd $dir
- for svndir in */.svn; do
- rm ${svndir%/.svn}
- cp -a ${dir}_host/${svndir%/.svn} .
- chown -R nobody ${svndir%/.svn}
+ for vcs in bzr svn; do
+ cd "$dir"
+ for vcsdir in */.$vcs; do
+ rm "${vcsdir%/.$vcs}"
+ cp -a "${dir}_host/${vcsdir%/.$vcs}" .
+ chown -R nobody "${vcsdir%/.$vcs}"
+ done
done
done