Skip to content

Commit

Permalink
rebuild a petbuild if anything has changed under its directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Feb 7, 2021
1 parent 16ac582 commit bbf1a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woof-code/support/petbuilds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for i in ../rootfs-petbuilds/busybox ../rootfs-petbuilds/*; do
continue
fi

HASH=`cat ../DISTRO_PKGS_SPECS-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION} ../DISTRO_COMPAT_REPOS ../DISTRO_COMPAT_REPOS-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION} ../DISTRO_PET_REPOS $i/petbuild 2>/dev/null | md5sum | awk '{print $1}'`
HASH=`(git log -n 1 --pretty=format:%H ../rootfs-petbuilds/${NAME}; cat ../DISTRO_PKGS_SPECS-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION} ../DISTRO_COMPAT_REPOS ../DISTRO_COMPAT_REPOS-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION} 2>/dev/null) | md5sum | awk '{print $1}'`
if [ ! -d "../../local-repositories/${WOOF_TARGETARCH}/petbuilds/${DISTRO_FILE_PREFIX}/${NAME}-${HASH}" ]; then
if [ $HAVE_ROOTFS -eq 0 ]; then
echo "Preparing build environment"
Expand Down

0 comments on commit bbf1a99

Please sign in to comment.