diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-03-27 15:49:30 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-03-27 15:49:30 +0200 |
commit | 5e5c2d317d9afe7327a75a6c35099510e1f8bb9c (patch) | |
tree | 71c67c4cf3532953851edd13a9de6d1964b22f9c /base/pkg-get/syn | |
parent | d460c8b6b98046aaad341547116f9a8a1051fe36 (diff) | |
download | nutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.tar.gz nutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.tar.bz2 nutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.tar.xz nutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.zip |
pkg-get, remplacé par pkg-get-awk
Diffstat (limited to 'base/pkg-get/syn')
-rw-r--r-- | base/pkg-get/syn | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/base/pkg-get/syn b/base/pkg-get/syn index d29fcd6f7..95284d529 100644 --- a/base/pkg-get/syn +++ b/base/pkg-get/syn @@ -25,23 +25,22 @@ fi if ! mountpoint /media/cdrom > /dev/null; then find_cd fi -if [ ! -L /depot ]; then - for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` - do - if [ -a $Depot/$i ]; then - rm -r $Depot/$i - fi - done - pkg-get sync - for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` - do +for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` +do + if [ -a $Depot/$i ]; then + rm -r $Depot/$i + fi + mkdir -p $Depot/$i +done +pkg-get sync +for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` +do if [ -d $MediaDepot/$i ]; then rm -r $Depot/$i > /dev/null 2>&1 mkdir -p $Depot/$i for j in $MediaDepot/$i/*.xz do let PKGNB=$PKGNB+1 - fj=`basename $j` ln -sf $MediaDepot/$i/$fj $Depot/$i/$fj echo -n -e "$PKGNB Paquets trouvés sur le média\r" @@ -49,10 +48,4 @@ if [ ! -L /depot ]; then echo "$PKGNB Paquets trouvés sur le média" cp $MediaDepot/$i/PKG* $Depot/$i/ fi - done -else - for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` - do - rsync -avuz --delete-before rsync://nutyx.meticul.eu/nutyx/attapu/i686/$i/ $Depot/$i/ - done -fi +done |