From: Adam Dickmeiss Date: Tue, 4 May 2010 12:39:10 +0000 (+0200) Subject: Handle non-existing .dsc/.gz's. Ubuntu Lucid. X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=51855aa5439b20876a9f10d982eb7357ffdf39ed;p=git-tools-moved-to-github.git Handle non-existing .dsc/.gz's. Ubuntu Lucid. --- diff --git a/update-archive/update-archive.sh b/update-archive/update-archive.sh index c8da2ed..80a89c9 100755 --- a/update-archive/update-archive.sh +++ b/update-archive/update-archive.sh @@ -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 \