Browse Source

build-package: remove termux_step_compare_debs

android-5
Henrik Grimler 6 years ago
committed by Leonid Plyushch
parent
commit
5873ff8750
  1. 4
      build-package.sh
  2. 18
      scripts/build/termux_step_compare_debs.sh

4
build-package.sh

@ -125,9 +125,6 @@ termux_step_create_debscripts() {
# Create the build deb file. Not to be overridden by package scripts.
source scripts/build/termux_step_create_debfile.sh
# Function to compare debs built with -i with ones from a repo
source scripts/build/termux_step_compare_debs.sh
# Finish the build. Not to be overridden by package scripts.
source scripts/build/termux_step_finish_build.sh
@ -163,5 +160,4 @@ cd "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"
termux_step_post_massage
termux_step_create_datatar
termux_step_create_debfile
termux_step_compare_debs
termux_step_finish_build

18
scripts/build/termux_step_compare_debs.sh

@ -1,18 +0,0 @@
termux_step_compare_debs() {
if [ "${TERMUX_INSTALL_DEPS}" = true ]; then
cd ${TERMUX_SCRIPTDIR}
for DEB in $TERMUX_PKG_NAME $(find $TERMUX_PKG_BUILDER_DIR $TERMUX_PKG_TMPDIR -name "*.subpackage.sh" | sed 's%\.subpackage\.sh%%g'); do
DEB=$(basename $DEB)
read DEB_ARCH DEB_VERSION <<< $(termux_extract_dep_info "$DEB")
termux_download_deb $DEB $DEB_ARCH $DEB_VERSION \
&& (
DEB_FILE=${DEB}_${DEB_VERSION}_${DEB_ARCH}.deb
# `|| true` to prevent debdiff's exit code from stopping build
debdiff $TERMUX_DEBDIR/$DEB_FILE $TERMUX_COMMON_CACHEDIR-$TERMUX_ARCH/$DEB_FILE || true
) || echo "Download of ${DEB}@${DEB_VERSION} failed, not comparing debs"
echo ""
done
fi
}
Loading…
Cancel
Save