From 51855aa5439b20876a9f10d982eb7357ffdf39ed Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 4 May 2010 14:39:10 +0200 Subject: [PATCH] Handle non-existing .dsc/.gz's. Ubuntu Lucid. --- update-archive/update-archive.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 \ -- 1.7.10.4