[BACK]Return to MakeTorrents.pl CVS log [TXT][DIR] Up to [local] / openbsd / OpenBSDTorrents

Diff for /openbsd/OpenBSDTorrents/MakeTorrents.pl between version 1.17 and 1.21

version 1.17, 2005/05/20 01:18:24 version 1.21, 2006/11/06 23:17:59
Line 1 
Line 1 
 #!/usr/bin/perl -T  #!/usr/bin/perl
 #$Id$  # -T
   #$RedRiver: MakeTorrents.pl,v 1.20 2006/07/24 18:03:53 andrew Exp $
 use strict;  use strict;
 use warnings;  use warnings;
 use diagnostics;  use diagnostics;
Line 40 
Line 41 
         return 1 if $StartDir ne $OBT->{BASENAME};          return 1 if $StartDir ne $OBT->{BASENAME};
   
         foreach my $subdir (@$dirs) {          foreach my $subdir (@$dirs) {
                 next if $subdir eq '.';                  next if $subdir =~ /^\./;
                 next if $subdir eq '..';  
                 Process_Dir("$basedir/$subdir")                  Process_Dir("$basedir/$subdir")
         }          }
 }  }
Line 112 
Line 112 
   
     my $t = BT::MetaInfo::Cached->new(      my $t = BT::MetaInfo::Cached->new(
         {          {
             cache_root =>                  cache_root => '/tmp/OBTFileCache'
             $OBT->{DIR_HOME} . '/FileCache'  
         }          }
     );      );
   
Line 129 
Line 128 
     #    }      #    }
     #}      #}
     $t->piece_length($piece_len);      $t->piece_length($piece_len);
     $t->creation_date(gmtime);      $t->creation_date(time);
     print "Checksumming files. This may take a little while...\n";      print "Checksumming files. This may take a little while...\n";
     $t->set_files(@$files);      $t->set_files(@$files);
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.21

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>