test/zsh.spec
changeset 385 3cde352d3270
parent 367 e45f50e940b6
child 393 d16ac3fb05fa
     1.1 --- a/test/zsh.spec	Thu May 14 05:55:19 2009 +0100
     1.2 +++ b/test/zsh.spec	Mon Sep 28 17:36:02 2009 +0100
     1.3 @@ -35,7 +35,7 @@
     1.4  if prefix==nil then
     1.5      prefix="/usr"
     1.6  end
     1.7 -if posix.stat(prefix.."/bin/zip")~=nil then
     1.8 +if arg[2]==1 and posix.stat(prefix.."/bin/zip")~=nil then
     1.9      mkdir_missing(prefix.."/var")
    1.10      mkdir_missing(prefix.."/var/lib")
    1.11      posix.mkdir(prefix.."/var/lib/zsh")
    1.12 @@ -49,7 +49,7 @@
    1.13  if prefix==nil then
    1.14      prefix="/usr"
    1.15  end
    1.16 -if posix.stat(prefix.."/bin/zip")~=nil then
    1.17 +if arg[2]==0 and posix.stat(prefix.."/bin/zip")~=nil then
    1.18      os.remove(prefix.."/var/lib/zsh/data.zip")
    1.19      os.remove(prefix.."/var/lib/zsh")
    1.20  end