diff options
author | Urban Müller | 2015-09-16 16:12:38 +0200 |
---|---|---|
committer | Urban Müller | 2015-09-16 16:12:38 +0200 |
commit | 9376ddee188693e983df55dc87e427938c1f52af (patch) | |
tree | d9ff03102d80880a524947b02ae8c573e294a67a /it_url.class | |
parent | 1406935f2fb3ccd7608ae19e92187a936e6129b0 (diff) | |
download | itools-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.class | 3 |
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); |