Skip to content

Commit c51db54

Browse files
syuu1228nyh
authored andcommitted
reloc: clean up '.orig' temporary directory before building deb package
When we terminate the build while building deb package, it may leave 'scylla-package3-package.orig' directory which uses for temporarily during package build, normally deleted when build finished. If the directory remains, next deb package build causes error. Let's delete scylla-python3-package.orig and extracted debian directory too. Fixes scylladb/scylladb#9264 Closes #23
1 parent 279aae1 commit c51db54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: reloc/build_deb.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ if [ ! -e $RELOC_PKG ]; then
3232
exit 1
3333
fi
3434
RELOC_PKG=$(readlink -f $RELOC_PKG)
35-
BUILDDIR=$(readlink -f "$BUILDDIR")
36-
rm -rf "$BUILDDIR"/scylla-python3-package
35+
rm -rf "$BUILDDIR"/scylla-python3-package "$BUILDDIR"/scylla-python3-package.orig "$BUILDDIR"/debian
3736
mkdir -p "$BUILDDIR"/scylla-python3-package
3837
tar -C "$BUILDDIR"/scylla-python3-package -xpf "$RELOC_PKG"
3938
cd "$BUILDDIR"/scylla-python3-package

0 commit comments

Comments
 (0)