~joshuacronemeyer/mimi/main

« back to all changes in this revision

Viewing changes to download-packages

  • Committer: josh
  • Date: 2008-08-03 06:53:42 UTC
  • Revision ID: josh@xubuntu-vm-20080803065342-9olvgn9nd5yydht8
Changed the remote mirror to the main us repo in hopes it will stop getting occasional 
404s.  I think they must have a dead webserver in the cluster...  Also got the downloads 
working a bit better.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/bash
2
 
set -e
 
2
#set -e
3
3
set -u
4
4
 
5
 
#not sure how to specify local destination to wget.
6
 
cur_dir=`pwd`
 
5
#TODO the problem with this wget command is that it won't try again after a 404
 
6
#and sometimes you get a 404 if one of the servers in the ubuntu web cluster is down
 
7
WGET="wget --no-verbose --retry-connrefused --tries=10 --timestamping --force-directories --no-host-directories --directory-prefix ${LOCAL_MIRROR}/.."
7
8
mkdir -p $LOCAL_MIRROR
8
 
cd $LOCAL_MIRROR/..
9
9
 
10
10
#download everything listed in the urls file
11
11
for url in `cat $MIMI_ROOT/urls`; do
12
 
  wget -x -nH -N -nv $url
 
12
  $WGET $url
13
13
done
14
14
 
15
15
#Some Other stuff to download
16
 
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/udeb.list
17
 
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/initrd.gz
18
 
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/vmlinuz
19
 
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/debian-cd_info.tar.gz
20
 
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/netboot/netboot.tar.gz
 
16
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/udeb.list
 
17
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/initrd.gz
 
18
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/vmlinuz
 
19
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/debian-cd_info.tar.gz
 
20
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/netboot/netboot.tar.gz
21
21
 
22
 
#done with wget.  go back to same directory.
23
 
cd $cur_dir
24
22
 
25
23
#Some Directories Have to get created
26
24
mkdir -p $LOCAL_MIRROR/indices/