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:
parent
66d95f8500
commit
9d8dda35bf
2
dist/debian/build_deb.sh
vendored
2
dist/debian/build_deb.sh
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user