X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=update-archive%2Fupdate-archive.sh;h=17d4b2953d2b3822df8a6e8e48c35ef668c0185b;hb=da18f65a25407d37cc9ae9a564e9a6cb736dda76;hp=bb09b58253cd177c8609ac49ab9629d6883df0db;hpb=4c2a314cbece5acb866b1e1c7f3120d3142af43b;p=git-tools-moved-to-github.git diff --git a/update-archive/update-archive.sh b/update-archive/update-archive.sh index bb09b58..17d4b29 100755 --- a/update-archive/update-archive.sh +++ b/update-archive/update-archive.sh @@ -29,18 +29,19 @@ for vdist in ubuntu/gutsy ubuntu/hardy ubuntu/intrepid ubuntu/jaunty ubuntu/karm # Uncomment to clean the .db (cache) # rm tmp/* - # Make symlinks from the regular FTP archive + # Prepare pool d=pool/dists/$dist if test ! -d $d; then mkdir -p $d; fi - # Remove invalid symlinks - for l in $d/*; do + mkdir -p $d/source + # Remove invalid symlinks (source, i386, amd64,..) + for l in $d/*/*; do if test -L $l; then if test ! -f $l; then rm $l fi fi done - mkdir -p $d/source + # Make symlinks from the regular FTP archive ln -sf /home/ftp/pub/*/$vendor/$dist/*.dsc $d/source ln -sf /home/ftp/pub/*/$vendor/$dist/*.gz $d/source for arch in $architectures; do