dist/debian: requires root privilege to wipe build directory

Since we run pbuilder as root, .deb packages owned by root user so we need to
run 'rm -rf build' as root as well.

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
Message-Id: <1512373941-7018-1-git-send-email-syuu@scylladb.com>
(cherry picked from commit 0f38eb221e)
This commit is contained in:
Takuya ASADA 2017-12-04 16:52:21 +09:00 committed by Avi Kivity
parent 66d95f8500
commit 9d8dda35bf

View File

@ -48,7 +48,7 @@ if [ "$(arch)" != "x86_64" ]; then
fi fi
if [ -e debian ] || [ -e build/release ]; then if [ -e debian ] || [ -e build/release ]; then
rm -rf debian build sudo rm -rf debian build
mkdir build mkdir build
fi fi
if is_debian_variant; then if is_debian_variant; then