summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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