Handle non-existing .dsc/.gz's. Ubuntu Lucid.
authorAdam Dickmeiss <adam@lists.indexdata.dk>
Tue, 4 May 2010 12:39:10 +0000 (14:39 +0200)
committerAdam Dickmeiss <adam@lists.indexdata.dk>
Tue, 4 May 2010 12:39:10 +0000 (14:39 +0200)
update-archive/update-archive.sh

index c8da2ed..80a89c9 100755 (executable)
@@ -15,7 +15,7 @@ confdir=`pwd`
 
 architectures="i386 amd64"
 
-for vdist in ubuntu/gutsy ubuntu/hardy ubuntu/intrepid ubuntu/jaunty ubuntu/karmic debian/squeeze debian/lenny debian/etch; do
+for vdist in ubuntu/gutsy ubuntu/hardy ubuntu/intrepid ubuntu/jaunty ubuntu/karmic ubuntu/lucid debian/squeeze debian/lenny debian/etch; do
        dist=`basename $vdist`
        vendor=`dirname $vdist`
        ftpdir=/home/ftp/pub/$vendor
@@ -55,8 +55,9 @@ for vdist in ubuntu/gutsy ubuntu/hardy ubuntu/intrepid ubuntu/jaunty ubuntu/karm
                        if $use; then
                                distdir=$pdir/$vendor/$dist
                                if test -d $distdir; then
-                                       ln -sf $distdir/*.dsc $d/source
-                                       ln -sf $distdir/*.gz $d/source
+                                       for f in $distdir/*.dsc $distdir/*.gz; do
+                                               test -f $f && ln -sf $f $d/source
+                                       done
                                        for arch in $architectures; do
                                                mkdir -p $d/${arch}
                                                for f in $pdir/.htaccess \