From 9d8dda35bf050299fee19e815879e7371adf94a4 Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Mon, 4 Dec 2017 16:52:21 +0900 Subject: [PATCH] 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 Message-Id: <1512373941-7018-1-git-send-email-syuu@scylladb.com> (cherry picked from commit 0f38eb221ebba78fa8858dac8b7197797a718be1) --- dist/debian/build_deb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/debian/build_deb.sh b/dist/debian/build_deb.sh index a044942..2ed1f12 100755 --- a/dist/debian/build_deb.sh +++ b/dist/debian/build_deb.sh @@ -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