Automate rm of repo-*86* when commiting "any" pkg

This commit integrates part of the functionality of commitpkg2any
in the standard commitpkg script. If the package is for arch=any
and there exists ../repos/$repo-{i686,x86_64}, then these are
removed.

NB: I believe commitpkg2any should be removed, as it encourages
converting a pkg to arch=any with the same $pkgver. It is better
practice to wait for a new version before releasing the pkg
with arch=any. It also saves bandwidth!

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Francois Charette 2009-09-18 21:39:37 +02:00 committed by Aaron Griffin
parent 9561089142
commit a5651376b4
1 changed files with 10 additions and 0 deletions

View File

@ -119,4 +119,14 @@ if [ $? -ne 0 ]; then
fi
echo "===> Tagged for $repo-$CARCH"
if [ "$CARCH" == "any"]; then
if [ -d ../repos/${repo}-i686 -a -d ../repos/${repo}-x86_64 ]; then
pushd ..
svn rm $repo-i686
svn rm $repo-x86_64
svn commit -m "removed $repo-i686 and $repo-x86_64 for $pkgname"
popd
fi
fi
# vim:ft=sh:ts=4:sw=4:et: