Author: ranger Date: Mon May 11 22:23:42 2009 New Revision: 1536 URL: <http://svn.finkproject.org/websvn/listing.php?sc=1&rev=1536&repname=user%3a+ranger> Log: download if the downloaddir file does not exist
Modified: trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl Modified: trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl URL: <http://svn.finkproject.org/websvn/diff.php?path=/trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl&rev=1536&repname=user%3a+ranger> ============================================================================== --- trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl (original) +++ trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl Mon May 11 22:23:42 2009 @@ -195,8 +195,9 @@ $Fink::Config::config = Fink::Config->new_from_properties({ basepath => $WORKDIR, distribution => $dist, -# downloadmethod => 'lftpget', - downloadmethod => 'curl', +# downloadmethod => 'axel', + downloadmethod => 'lftpget', +# downloadmethod => 'curl', architecture => $arch, downloadtimeout => 3600, # try up to 1 hour to download something }); @@ -242,14 +243,14 @@ } } - my $do_download = 0; + my $do_download = (not -e $DOWNLOADDIR . '/' . $tarball); for $checksum_type (keys %$checksums) { next if (not defined $checksum_type or $checksum_type =~ /^\s*$/); my $check_file = $DOWNLOADDIR . '/' . lc($checksum_type) . '/' . lc($checksums->{$checksum_type}) . '/' . $tarball; if (not -f $check_file) { - print LOG "$check_file does not exists, downloading\n"; + print LOG "$check_file does not exist, downloading\n"; $do_download = 1; } elsif ($VALIDATE_EXISTING_FILES) ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs