build-deb.sh: fix rm to erase only python

While building unified-deb we first use scylla/reloc/build_deb.sh to create the scylla core package, and after that scylla/reloc/python3/build_deb.sh to create python3.

On 058da69#diff-4a42abbd0ed654a1257c623716804c82 a new rm -rf command was added.
It causes python3 process to erase Scylla-core process.

Set python3 to erase its own dir scylla-python3-package only.
This commit is contained in:
Hagit Segev
2020-07-08 17:48:47 +03:00
committed by Avi Kivity
parent b10beead61
commit aec910278f

View File

@@ -26,7 +26,7 @@ if [ ! -e $RELOC_PKG ]; then
exit 1
fi
RELOC_PKG=$(readlink -f $RELOC_PKG)
rm -rf build/debian
rm -rf build/debian/scylla-python3-package
mkdir -p build/debian/scylla-python3-package
tar -C build/debian/scylla-python3-package -xpf $RELOC_PKG
cd build/debian/scylla-python3-package