From 28fbb5cd9d12f092f48f0757beba58d4dd6b0baf Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 10:42:27 +0000 Subject: Add Packages list to mirror --- src/mirror.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/mirror.sh b/src/mirror.sh index b2b7c80..a1c4065 100644 --- a/src/mirror.sh +++ b/src/mirror.sh @@ -16,6 +16,16 @@ create_deps_graph () { done } +create_packages_list () { + for pkg in $@; do + while read line; do + set -- $line + shift + echo $pkg $@ + done < $PACKAGES_DIR/$pkg + done +} + mirror () { local MIRROR_DIR=${SYSROOT}${1:-$MIRROR_DIR} mkdir -p $MIRROR_DIR/repo @@ -25,6 +35,8 @@ mirror () { cp -r $KEYCHAIN_DIR/* $MIRROR_DIR/keychain/ local packages=$(list) + + create_packages_list $packages > $MIRROR_DIR/repo/packages.list cd $MIRROR_DIR/repo fetch $packages -- cgit v1.2.1