sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 4254f4742fc9d857d1ee8373eb970c736fb551e8
parent 3da88c764fa1edd1effa3d71deb074ce189790a5
Author: J Pipkin <j@dawnrazor.net>
Date:   Sun,  6 Jan 2013 02:22:21 -0600

remove any existent distfile before attempting to get new one

Diffstat:
MSBO-Lib/lib/SBO/Lib.pm | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm @@ -442,6 +442,7 @@ sub get_distfile { my $filename = get_filename_from_link $link; mkdir $distfiles unless -d $distfiles; chdir $distfiles; + unlink $filename if -f $filename; system("wget --no-check-certificate $link") == 0 or die "Unable to wget $link\n"; # can't do anything if the link in the .info doesn't lead to a good d/l