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 .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 19, 2019
It takes a list of existing packages or HTTP URL thereof. The script
finds missing packages by enumerating all valid packages and subtracting
the set of existing packages. It then translates these back to their
ports.
Showing with 32 additions and 0 deletions.
  1. +32 −0 buildmaster/bin/missing_ports.sh
@@ -0,0 +1,32 @@
#!/bin/sh

if [ -z "$1" ]
then
echo "usage: $0 <existingPackageListPathOrURL>"
echo ""
echo "This tool finds ports that have missing packages."
exit 1
fi

set -e

HAIKUPORTER=${HAIKUPORTER:-haikuporter}
VALID_PACKAGE_LIST=$(mktemp)
PRESENT_PACKAGE_LIST=$(mktemp)

case "$1" in
http://*|https://*)
curl -qs "$1" | sort > $PRESENT_PACKAGE_LIST
;;
*)
sort "$1" > $PRESENT_PACKAGE_LIST
;;
esac

$HAIKUPORTER --list-packages --print-filenames --active-versions-only \
| sort > $VALID_PACKAGE_LIST

comm -23 $VALID_PACKAGE_LIST $PRESENT_PACKAGE_LIST \
| xargs "$HAIKUPORTER" --ports-for-packages | sort -u

rm $VALID_PACKAGE_LIST $PRESENT_PACKAGE_LIST

No commit comments for this range

You can’t perform that action at this time.