#15414: solve_repo_dependencies tool
--------------------------------+----------------------------
Reporter: kallisti5 | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Package Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
--------------------------------+----------------------------
Comment (by kallisti5):
I tried to hack in usage of get_package_dependencies, but it didn't really
work like we need:
{{{
#!/bin/bash
BUILD_REPO_DIR="/var/lib/docker/plugins/0b25ebdee8b48451b1459c6c1965570c948ef97028d78e96057a0962b482ce84
/propagated-mount/volumes/ci-packages/data/build-packages/master"
if [[ $# -ne 2 ]]; then
echo "Usage: $0 [ARCH] [RemotePackageRepository File]"
echo ""
echo "Example: $0 x86_64 /home/billy/x86_64"
echo ""
exit 1
fi
ARCH=$1
REPO=$2
PACKAGES=$(cat $REPO | grep \- | egrep -v ":")
REPO_ID=$(sha256sum $REPO | awk '{ print $1}')
NEEDS=""
for i in $PACKAGES; do
PACKAGE=$(echo $i | sed -e 's/-[0-9]*$//g')
RESULTS=$(find $BUILD_REPO_DIR/$REPO_ID/packages/ -name
"${PACKAGE}*${ARCH}.hpkg")
NEEDS=$(echo "${NEEDS} ${RESULTS}")
done
get_package_dependencies $BUILD_REPO_DIR/$REPO_ID/repo -- $NEEDS
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/15414#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.