[Pkg-ltsp-devel] manage-mirror script
Raman Pandarinathan
raamanp at gmail.com
Tue Aug 12 09:38:52 UTC 2008
Dear developers
I am extremely sorry for not putting proper subject line in my previous mail.
I am resending the mail again
While looking through the plugin source codes, I saw a TODO marked in
manage-mirror script.
I have modified the code for arbitary number of mirrors, which seems
to work for me.
Raman.P
----------------------patch for manage-mirror script-------------------------
--- manage-mirror.orig 2008-08-12 18:08:33.000000000 +0530
+++
/usr/share/ltsp/plugins/ltsp-build-client/Debian/010-manage-mirror 2008-08-12
18:10:09.000000000 +0530
@@ -49,13 +49,15 @@
# only one mirror specified
add_mirror "$mirror_list"
else
- # TODO: support an arbitrary number of mirrors
- for number in 1 2 3 4 5 6 7 8 9 ; do
- mirror="$(echo "$mirror_list" | cut -d , -f $number)"
- if [ -n "$mirror" ]; then
- add_mirror "$mirror"
- fi
- done
+ OIFS=$IFS
+ IFS=,
+ for mirror in $mirror_list; do
+ if [ -n "$mirror" ]; then
+ add_mirror "$mirror"
+ fi
+ done
+ IFS=$OIFS
+
fi
}
More information about the Pkg-ltsp-devel
mailing list