summaryrefslogtreecommitdiff
path: root/src/mirror.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 10:42:27 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 10:42:27 +0000
commit28fbb5cd9d12f092f48f0757beba58d4dd6b0baf (patch)
tree4c82235d3d123779b364f1532159fc112f63aa81 /src/mirror.sh
parentb91c09c1221f10214db638660b1eda60438354c3 (diff)
Add Packages list to mirrorHEADmaster
Diffstat (limited to 'src/mirror.sh')
-rw-r--r--src/mirror.sh12
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