From: Yoann G. <jj...@us...> - 2004-09-29 20:56:54
|
Update of /cvsroot/ngetsuite/ngetsuite/ngetsuite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28802 Modified Files: downloader.rb Log Message: queue_tempdir cleanup Index: downloader.rb =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/ngetsuite/downloader.rb,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** downloader.rb 29 Sep 2004 16:32:12 -0000 1.43 --- downloader.rb 29 Sep 2004 20:56:44 -0000 1.44 *************** *** 260,263 **** --- 260,267 ---- end @t.exit + if $config['queue_tempsubdir'] + sd = ".#{File::Separator}#{@subdir}#{File::Separator}#{$config['queue_tempsubdir']}" + Dir.unlink(sd) if (File.directory?(sd) and (Dir.entries(sd) - ['.', '..']).empty?) + end time = Time.now.to_s Db.dbh.do 'lock tables queue write' |