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>
This commit is contained in:
Maxime Gauduin 2013-08-26 00:56:58 +02:00 committed by Pierre Schmitz
parent 59e348fc3c
commit 4b3a6c7803
1 changed files with 8 additions and 6 deletions

View File

@ -287,14 +287,16 @@ _chrootbuild() {
ln -sft /srcdest /srcdest_host/* ln -sft /srcdest /srcdest_host/*
ln -sft /startdir /startdir_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 # Since makepkg 4.1.1 they get checked out via cp -a, copying the symlink
for dir in /srcdest /startdir; do for dir in /srcdest /startdir; do
cd $dir for vcs in bzr svn; do
for svndir in */.svn; do cd "$dir"
rm ${svndir%/.svn} for vcsdir in */.$vcs; do
cp -a ${dir}_host/${svndir%/.svn} . rm "${vcsdir%/.$vcs}"
chown -R nobody ${svndir%/.svn} cp -a "${dir}_host/${vcsdir%/.$vcs}" .
chown -R nobody "${vcsdir%/.$vcs}"
done
done done
done done