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

Diff for /openbsd/OpenBSDTorrents/CurrentTorrents.pl between version 1.4 and 1.6

version 1.4, 2005/03/24 00:20:33 version 1.6, 2005/03/25 03:12:05
Line 14 
Line 14 
   
 #use YAML;  #use YAML;
   
   justme();
   
 my %files;  my %files;
 opendir DIR, $TorrentDir or die "Couldn't opendir $TorrentDir: $!";  opendir DIR, $TorrentDir or die "Couldn't opendir $TorrentDir: $!";
 foreach (readdir DIR) {  foreach (readdir DIR) {
Line 62 
Line 64 
                 $files{$name}{$epoch}{comment}   = $t->{comment};                  $files{$name}{$epoch}{comment}   = $t->{comment};
                 my ($path) = $t->{comment} =~ /Files from ([^\n]+)\n/s;                  my ($path) = $t->{comment} =~ /Files from ([^\n]+)\n/s;
   
                 unless (-d "$TorrentDir/$path") {                  unless (-d "$BaseDir/$path") {
                         print "Deleting $files{$name}{$epoch}{file} the path doesn't exist.\n";                          print "Deleting $files{$name}{$epoch}{file} the path doesn't exist.\n";
                         push @delete, $files{$name}{$epoch}{file};                          push @delete, $files{$name}{$epoch}{file};
                 }                  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

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