From: YS <ys...@us...> - 2004-09-29 16:07:53
|
Update of /cvsroot/ngetsuite/ngetsuite/ngetsuite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv364/ngetsuite Modified Files: queue.rb Log Message: - subdir fix - sexy headers in web interface's pages Index: queue.rb =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/ngetsuite/queue.rb,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** queue.rb 29 Sep 2004 12:18:00 -0000 1.31 --- queue.rb 29 Sep 2004 16:07:43 -0000 1.32 *************** *** 100,117 **** @_period = period ! # fine-tune subdir ! @_subdir = nil ! if groupindex and not fetch_from_db ! @_subdir = Group.getgroup(groupindex)._directory.sub(/#{$config['basedir']}(#{File::Separator})*/, '') ! if subdir ! @_subdir += File::Separator + subdir ! dir = $config['basedir'] + File::Separator + @_subdir ! if FileTest.exists? dir ! puts "The download target #{dir} already exists" ! else ! File.makedirs dir ! end ! end ! end update_from_db if fetch_from_db end --- 100,116 ---- @_period = period ! @_subdir = (subdir) ? subdir : value ! # if groupindex and not fetch_from_db ! # @_subdir = Group.getgroup(groupindex)._directory.sub(/#{$config['basedir']}(#{File::Separator})*/, '') ! # if subdir ! # @_subdir += File::Separator + subdir ! # dir = $config['basedir'] + File::Separator + @_subdir ! # if FileTest.exists? dir ! # puts "The download target #{dir} already exists" ! # else ! # File.makedirs dir ! # end ! # end ! # end update_from_db if fetch_from_db end |