Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayrohila authored Jan 28, 2024
1 parent da25b66 commit 9b7cb12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion woof-code/support/petbuilds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ for NAME in $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 ../rootfs-petbuilds/${NAME}/petbuild 2>/dev/null | md5sum | awk '{print $1}'`
tar -czf /tmp/petbuild.tar.gz ../rootfs-petbuilds/${NAME}/ # /tmp/petbuild.tar.gz is also used for generating HASH; can be used to compare any change in any file/folder of the petbuild directory
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 /tmp/petbuild.tar.gz 2>/dev/null | md5sum | awk '{print $1}'`
if [ ! -d "../petbuild-output/${NAME}-${HASH}" ]; then
if [ $HAVE_ROOTFS -eq 0 ]; then
echo "Preparing build environment"
Expand Down

0 comments on commit 9b7cb12

Please sign in to comment.