From 660d39fec2923ecf69462a7deb9110ae0e1bae40 Mon Sep 17 00:00:00 2001 From: Philip Nagler-Frank Date: Wed, 9 Mar 2022 14:27:12 +0100 Subject: [PATCH] Revert "Fix the zip date when the build has started the day before" This reverts commit 6a2b51c15548e5501a97a8c03eb944d3de937196. --- src/build.sh | 20 -------------------- src/fix_date.sh | 3 --- 2 files changed, 23 deletions(-) delete mode 100755 src/fix_date.sh diff --git a/src/build.sh b/src/build.sh index b47e6d7..f225283 100755 --- a/src/build.sh +++ b/src/build.sh @@ -260,22 +260,6 @@ for branch in ${BRANCH_NAME//,/ }; do for codename in ${devices//,/ }; do if [ -n "$codename" ]; then - currentdate=$(date +%Y%m%d) - if [ "$builddate" != "$currentdate" ]; then - # Sync the source code - builddate=$currentdate - - if [ "$LOCAL_MIRROR" = true ]; then - echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log" - cd "$MIRROR_DIR" - repo sync --force-sync --no-clone-bundle &>> "$repo_log" - fi - - echo ">> [$(date)] Syncing branch repository" | tee -a "$repo_log" - cd "$SRC_DIR/$branch_dir" - repo sync -c --force-sync &>> "$repo_log" - fi - if [ "$BUILD_OVERLAY" = true ]; then lowerdir=$SRC_DIR/$branch_dir upperdir=$TMP_DIR/device @@ -317,10 +301,6 @@ for branch in ${BRANCH_NAME//,/ }; do echo ">> [$(date)] Starting build for $codename, $branch branch" | tee -a "$DEBUG_LOG" build_successful=false if (set +eu ; mka bacon) &>> "$DEBUG_LOG"; then - currentdate=$(date +%Y%m%d) - if [ "$builddate" != "$currentdate" ]; then - find out/target/product/"$codename" -maxdepth 1 -name "lineage-*-$currentdate-*.zip*" -type f -exec sh /root/fix_build_date.sh {} "$currentdate" "$builddate" \; &>> "$DEBUG_LOG" - fi # Move produced ZIP files to the main OUT directory echo ">> [$(date)] Moving build artifacts for $codename to '$ZIP_DIR/$zipsubdir'" | tee -a "$DEBUG_LOG" diff --git a/src/fix_date.sh b/src/fix_date.sh deleted file mode 100755 index 2f99928..0000000 --- a/src/fix_date.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -mv "$1" "$(echo "$1" | sed "s|$2|$3|")"