archrelease: Fix removal of repository content

Fix the `svn rm` invocation when releasing to a repository that already
contains some files. `svn ls` only returns basenames, so we need to
prepend the path here.

Regression introduced in 8384ad849d.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Lukas Fleischer 2011-08-12 15:16:27 +02:00 committed by Pierre Schmitz
parent 30bcca88d3
commit 51b5d69cfc
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ echo -n "releasing package to ${1}..."
pushd .. >/dev/null
if [ -d "repos/${1}" ]; then
for file in $(svn ls "repos/${1}"); do
svn rm -q "$file"
svn rm -q "repos/${1}/$file"
done
fi
if [ ! -d repos ]; then