diff options
Diffstat (limited to 'Master/texmf-dist/scripts/context/ruby/base/tool.rb')
-rw-r--r-- | Master/texmf-dist/scripts/context/ruby/base/tool.rb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/context/ruby/base/tool.rb b/Master/texmf-dist/scripts/context/ruby/base/tool.rb index 5ccedfec1c1..abf0d5ed05c 100644 --- a/Master/texmf-dist/scripts/context/ruby/base/tool.rb +++ b/Master/texmf-dist/scripts/context/ruby/base/tool.rb @@ -24,10 +24,15 @@ module Tool t = Time.now u = t.usec.to_s % [1..2] [0..3] pth = t.strftime("#{mainpath}%Y%m%d-%H%M%S-#{u}-#{Process.pid}") - if pth == $constructedtempdir - # sleep(0.01) - retry - end + # + # problems with 1.9 + # + # if pth == $constructedtempdir + # # sleep(0.01) + # retry + # end + pth == $constructedtempdir + # Dir.mkdir(pth) if create $constructedtempdir = pth return pth @@ -216,7 +221,7 @@ module Tool def Tool.checksuffix(old) - return old unless test(?f,old) + return old unless FileTest.file?(old) new = old |