Package: w3mir Version: 1:1.0.10-3 Severity: grave Tags: patch Justification: renders package unusable
This package has broken recently probably by an update to URI::URL, or whichever Perl module provides unix_path() When a URL is being requested and mirrored to disk, the unix_path is function is called with the full URL but this has recently changed which means the initial '/' is returned This means that the local filename to be used for saving the file is for example /index.html or /graphics/image.png which of course it can't save. The filename should be suitable for saving into the current directory. If this is not a bug in the newer version of URI::URL, then a simple fix is to add the following line at line number 588 $lf_name =~ s/^\///; -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.4.27 Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB) Versions of packages w3mir depends on: ii libwww-perl 5.803-4 WWW client/server library for Perl ii perl [libmime-base64-perl] 5.8.4-8 Larry Wall's Practical Extraction -- no debconf information
--- /usr/bin/w3mir 2003-08-20 09:40:35.000000000 +0100 +++ w3mir 2005-04-22 14:22:00.000000000 +0100 @@ -585,6 +585,7 @@ # Derive a filename from the url, the filename contains no URL-quoting my($lf_name) = (url "file:$lf_url")->unix_path; + $lf_name =~ s/^\///; # Make all intermediate directories &mkdir($lf_name) if $s==0;