test/zip.spec
changeset 381 d35581ea0c67
parent 369 f8c27fe9fe63
child 382 4e261a14a6bd
     1.1 --- a/test/zip.spec	Fri Jun 12 16:59:11 2009 +0100
     1.2 +++ b/test/zip.spec	Thu Aug 13 07:08:45 2009 +0100
     1.3 @@ -33,7 +33,7 @@
     1.4  if prefix==nil then
     1.5      prefix="/usr"
     1.6  end
     1.7 -if posix.stat(prefix.."/bin/zap")~=nil then
     1.8 +if arg[2]==1 and posix.stat(prefix.."/bin/zap")~=nil then
     1.9      mkdir_missing(prefix.."/var")
    1.10      mkdir_missing(prefix.."/var/lib")
    1.11      posix.mkdir(prefix.."/var/lib/zip")
    1.12 @@ -47,7 +47,7 @@
    1.13  if prefix==nil then
    1.14      prefix="/usr"
    1.15  end
    1.16 -if posix.stat(prefix.."/bin/zap")~=nil then
    1.17 +if arg[2]==0 and posix.stat(prefix.."/bin/zap")~=nil then
    1.18      os.remove(prefix.."/var/lib/zip/data.zap")
    1.19      os.remove(prefix.."/var/lib/zip")
    1.20  end