Browse Source
build-package.sh: fix rm problems when builddir/srcdir contains RO files
android-5
Leonid Plyushch
6 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
4 additions and
0 deletions
-
scripts/build/termux_step_start_build.sh
|
@ -93,6 +93,10 @@ termux_step_start_build() { |
|
|
done<<<$(./scripts/buildorder.py "$TERMUX_PKG_BUILDER_DIR" $TERMUX_PACKAGES_DIRECTORIES || echo "ERROR") |
|
|
done<<<$(./scripts/buildorder.py "$TERMUX_PKG_BUILDER_DIR" $TERMUX_PACKAGES_DIRECTORIES || echo "ERROR") |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Following directories may contain objects with RO-only permissions which |
|
|
|
|
|
# makes them undeletable. We need fix that. |
|
|
|
|
|
chmod +w -R "$TERMUX_PKG_BUILDDIR" "$TERMUX_PKG_SRCDIR" |
|
|
|
|
|
|
|
|
# Cleanup old state: |
|
|
# Cleanup old state: |
|
|
rm -Rf "$TERMUX_PKG_BUILDDIR" \ |
|
|
rm -Rf "$TERMUX_PKG_BUILDDIR" \ |
|
|
"$TERMUX_PKG_PACKAGEDIR" \ |
|
|
"$TERMUX_PKG_PACKAGEDIR" \ |
|
|