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>
This commit is contained in:
Takuya ASADA 2017-12-04 16:52:21 +09:00 committed by Avi Kivity
parent f4ef4a5a3e
commit 0f38eb221e

View File

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