diff -r f8c27fe9fe63 -r 9ef8778486ec test/zip.spec --- a/test/zip.spec Fri Jun 12 16:59:11 2009 +0100 +++ b/test/zip.spec Tue Aug 11 12:53:16 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