Author: aschnell Date: Tue Aug 21 12:50:54 2007 New Revision: 6780 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6780&view=rev Log: - use secure temporary path Modified: trunk/libzypp-testsuite/pokus/src/testsuite.rb Modified: trunk/libzypp-testsuite/pokus/src/testsuite.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/pokus/src/testsuite.rb?rev=6780&r1=6779&r2=6780&view=diff ============================================================================== --- trunk/libzypp-testsuite/pokus/src/testsuite.rb (original) +++ trunk/libzypp-testsuite/pokus/src/testsuite.rb Tue Aug 21 12:50:54 2007 @@ -17,10 +17,16 @@ def Testsuite.write_repo(type, packages) - t = '/tmp/no-fun' # FIXME - output = OutputFactory(type, t) + + # ruby does *not* have a mkdtemp function! + path = '/tmp/no-fun' + IO.popen('mktemp -d') {|pipe| path = pipe.gets.chomp } + + output = OutputFactory(type, path) output.write(packages) - return t + + return path + end -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org