Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haiku/infrastructure
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 812ff65f24a8
Choose a base ref
...
head repository: haiku/infrastructure
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 332512a6043d
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 28, 2021

  1. Copy the full SHA
    332512a View commit details
Showing with 12 additions and 3 deletions.
  1. +12 −3 containers/forklift/forklift.sh
15 changes: 12 additions & 3 deletions containers/forklift/forklift.sh
Original file line number Diff line number Diff line change
@@ -4,17 +4,26 @@
# in the future.. but it seems better today to do it manually

export INCOMING=/incoming
export OUTGOING=/haikuports-data/build-packages/master/packages/
export OUTGOING=/haikuports-data/build-packages/master/packages

# build-packages
while true; do
for i in arm arm64 m68k ppc sparc riscv64 x86 x86_64; do
if [ ! -d "${INCOMING}/build-packages/${i})" ]; then
echo "$(date) - build-packages/$i missing!"
continue;
fi
if [ ! "$(ls -A ${INCOMING}/build-packages/${i})" ]; then
continue;
else
echo "new build-packages inbound for $i..."
echo "$(date) - new build-packages inbound for $i..."
ls -la ${INCOMING}/build-packages/${i}
find ${INCOMING}/build-packages/${i} -name "*.hpkg" -mmin +15 -exec mv -v -f {} ${OUTGOING}/ \;
# clobber architecture packages
find ${INCOMING}/build-packages/${i} -name "*${i}.hpkg" -mmin +30 -exec mv -v -f {} ${OUTGOING}/ \;
# don't clobber source packages since it could break other architecture repos?
find ${INCOMING}/build-packages/${i} -name "*source.hpkg" -mmin +30 -exec mv -v -n {} ${OUTGOING}/ \;
# cleanup
find ${INCOMING}/build-packages/${i} -name "*" -mmin +60 -exec rm -vf {} \;
fi
done
sleep 5m