=================================================================== RCS file: /cvs/openbsd/OpenBSDTorrents/CurrentTorrents.pl,v retrieving revision 1.5 retrieving revision 1.7 diff -u -r1.5 -r1.7 --- openbsd/OpenBSDTorrents/CurrentTorrents.pl 2005/03/24 00:32:02 1.5 +++ openbsd/OpenBSDTorrents/CurrentTorrents.pl 2005/03/28 22:52:01 1.7 @@ -1,5 +1,5 @@ #!/usr/bin/perl -T -#$Id: CurrentTorrents.pl,v 1.5 2005/03/24 00:32:02 andrew Exp $ +#$Id: CurrentTorrents.pl,v 1.7 2005/03/28 22:52:01 andrew Exp $ use strict; use warnings; use diagnostics; @@ -7,13 +7,15 @@ use BT::MetaInfo; use Time::Local; -use lib 'lib'; +use lib '/usr/local/bin/OpenBSDTorrents/lib'; use OpenBSDTorrents; %ENV = (); #use YAML; +justme(); + my %files; opendir DIR, $TorrentDir or die "Couldn't opendir $TorrentDir: $!"; foreach (readdir DIR) { @@ -28,7 +30,7 @@ my $epoch = timegm(0,$min,$hour,$mday,$mon,$year); - print "Adding $_\n"; + #print "Adding $_\n"; $files{$name}{$epoch} = { file => $_, @@ -63,12 +65,12 @@ my ($path) = $t->{comment} =~ /Files from ([^\n]+)\n/s; 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}; } if (keys %{ $files{$name} } == 1) { - print "Skipping torrent for $name there is only one.\n"; + #print "Skipping torrent for $name there is only one.\n"; next; }