summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2015-09-16 16:12:38 +0200
committerUrban Müller2015-09-16 16:12:38 +0200
commit9376ddee188693e983df55dc87e427938c1f52af (patch)
treed9ff03102d80880a524947b02ae8c573e294a67a /it_url.class
parent1406935f2fb3ccd7608ae19e92187a936e6129b0 (diff)
downloaditools-9376ddee188693e983df55dc87e427938c1f52af.tar.gz
itools-9376ddee188693e983df55dc87e427938c1f52af.tar.bz2
itools-9376ddee188693e983df55dc87e427938c1f52af.zip
support keepfailed in conjunction with failed preprocessors
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 984f621..33bf4b1 100644
--- a/it_url.class
+++ b/it_url.class
@@ -702,7 +702,8 @@ function get_cache($p = array())
if (!($result = @filesize($dstpath) && @rename($dstpath, $path)))
{
@unlink($dstpath);
- @unlink($path);
+ if (!$p['keepfailed'])
+ @unlink($path);
}
it_url::_unlock($path, $lock);