Package: websvn
Version: 2.2.1-1
dl.php calls setDirectoryTimestamp even on files, this causes an error
which stops the file from downloading.
patch attached
Adrian
--
Email: adr...@smop.co.uk -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org
--- dl.php.orig 2009-06-30 13:51:50.0 +0100
+++ dl.php 2009-06-30 13:50:10.0 +0100
@@ -126,7 +126,9 @@
// Set datetime of exported directory (and subdirectories) to datetime of revision so that every archive is equal
$date = $logEntry-date;
$ts = mktime(substr($date, 11, 2), substr($date, 14, 2), substr($date, 17, 2), substr($date, 5, 2), substr($date, 8, 2), substr($date, 0, 4));
- setDirectoryTimestamp($tmpname.DIRECTORY_SEPARATOR.$arcname, $ts);
+ if (is_dir($tmpname.DIRECTORY_SEPARATOR.$arcname)) {
+setDirectoryTimestamp($tmpname.DIRECTORY_SEPARATOR.$arcname, $ts);
+ }
// change to temp directory so that only relative paths are stored in tar
chdir($tmpname);