From 4254f4742fc9d857d1ee8373eb970c736fb551e8 Mon Sep 17 00:00:00 2001 From: J Pipkin Date: Sun, 6 Jan 2013 02:22:21 -0600 Subject: remove any existent distfile before attempting to get new one --- SBO-Lib/lib/SBO/Lib.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index ed70fcd..2b39d05 100644 --- 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 -- cgit v1.2.3