diff -r f8c27fe9fe63 -r d35581ea0c67 test/zip.spec --- a/test/zip.spec Fri Jun 12 16:59:11 2009 +0100 +++ b/test/zip.spec Thu Aug 13 07:08:45 2009 +0100 @@ -33,7 +33,7 @@ if prefix==nil then prefix="/usr" end -if posix.stat(prefix.."/bin/zap")~=nil then +if arg[2]==1 and posix.stat(prefix.."/bin/zap")~=nil then mkdir_missing(prefix.."/var") mkdir_missing(prefix.."/var/lib") posix.mkdir(prefix.."/var/lib/zip") @@ -47,7 +47,7 @@ if prefix==nil then prefix="/usr" end -if posix.stat(prefix.."/bin/zap")~=nil then +if arg[2]==0 and posix.stat(prefix.."/bin/zap")~=nil then os.remove(prefix.."/var/lib/zip/data.zap") os.remove(prefix.."/var/lib/zip") end