diff options
author | davidovski <david@davidovski.xyz> | 2023-02-02 10:42:27 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-02-02 10:42:27 +0000 |
commit | 28fbb5cd9d12f092f48f0757beba58d4dd6b0baf (patch) | |
tree | 4c82235d3d123779b364f1532159fc112f63aa81 /src | |
parent | b91c09c1221f10214db638660b1eda60438354c3 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/mirror.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |