The following commit has been merged in the master branch:
commit f7b8b1d17a1a92e5e0e3d39b3078c9d469954a32
Author: James Vega <[email protected]>
Date: Tue Feb 15 00:43:36 2011 -0500
dget: Ignore IO::File errors from local cache when a URL is given.
Closes: #599354
Signed-off-by: James Vega <[email protected]>
diff --git a/debian/changelog b/debian/changelog
index c8eea87..4085acb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,9 @@ devscripts (2.10.71) UNRELEASED; urgency=low
[ James Vega ]
* bts: Use Pod::Text to remove POD markup before displaying the help.
+ * dget: Ignore IO::File errors from local cache when a URL is given.
+ The local cache should be used when accessible, but not prevent downloads
+ when it isn't. (Closes: #599354)
-- Christoph Berg <[email protected]> Sat, 12 Feb 2011 14:26:10 +0100
diff --git a/scripts/dget.pl b/scripts/dget.pl
index 96ec2b7..7fafb3d 100755
--- a/scripts/dget.pl
+++ b/scripts/dget.pl
@@ -165,8 +165,8 @@ sub get_file {
foreach my $path (@dget_path) {
next unless -e "$path/$file";
+ my $fh5 = new IO::File("$path/$file") or next;
my $md5 = Digest::MD5->new;
- my $fh5 = new IO::File("$path/$file") or die "$path/$file: $!";
my $md5sum_new = Digest::MD5->new->addfile($fh5)->hexdigest();
close $fh5;
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].