<p><br>
Em 21/07/2011 04:02, <<a href="mailto:bdwalton@users.sourceforge.net">bdwalton@users.sourceforge.net</a>> escreveu:<br>
><br>
> Revision: 409<br>
> <a href="http://opencsw.svn.sourceforge.net/opencsw/?rev=409&view=rev">http://opencsw.svn.sourceforge.net/opencsw/?rev=409&view=rev</a><br>
> Author: bdwalton<br>
> Date: 2011-07-21 03:01:50 +0000 (Thu, 21 Jul 2011)<br>
><br>
> Log Message:<br>
> -----------<br>
> move constants defining valid path portions for where to find the catalog out of the library (these should leverage CSW::Constants in the future)<br>
><br>
> Signed-off-by: Ben Walton <<a href="mailto:bwalton@artsci.utoronto.ca">bwalton@artsci.utoronto.ca</a>><br>
><br>
> Modified Paths:<br>
> --------------<br>
> catalog_signatures/catalog_gpg<br>
> catalog_signatures/lib/csw/gpg_daemon.rb<br>
><br>
> Modified: catalog_signatures/catalog_gpg<br>
> ===================================================================<br>
> --- catalog_signatures/catalog_gpg 2011-07-21 03:01:24 UTC (rev 408)<br>
> +++ catalog_signatures/catalog_gpg 2011-07-21 03:01:50 UTC (rev 409)<br>
> @@ -4,6 +4,10 @@<br>
> require 'optparse'<br>
> require 'ostruct'<br>
><br>
> +VALID_TREES = %w(unstable current)<br>
> +VALID_ARCHES = %w(i386 sparc)<br>
> +VALID_RELEASES = %w(5.9 5.10 5.11)<br>
> +<br>
> begin<br>
> retried = nil<br>
> require 'csw/gpg_daemon'<br>
><br>
> Modified: catalog_signatures/lib/csw/gpg_daemon.rb<br>
> ===================================================================<br>
> --- catalog_signatures/lib/csw/gpg_daemon.rb 2011-07-21 03:01:24 UTC (rev 408)<br>
> +++ catalog_signatures/lib/csw/gpg_daemon.rb 2011-07-21 03:01:50 UTC (rev 409)<br>
> @@ -1,10 +1,6 @@<br>
> require 'webrick'<br>
><br>
> class GPGDaemon < WEBrick::HTTPServlet::AbstractServlet<br>
> - VALID_TREES = %w(unstable current)<br>
> - VALID_ARCHES = %w(i386 sparc)<br>
> - VALID_RELEASE = %w(5.9 5.10 5.11)<br>
> -<br>
> def initialize(server, mirror_path)<br>
> @mirror_path = mirror_path<br>
> @gpg = "gpg --batch --yes --no-tty -a --output /dev/stdout"<br>
> @@ -42,9 +38,6 @@<br>
> cat_file = File.join(@mirror_path, path, 'catalog')<br>
><br>
> return false unless parts.size.eql?(3)<br>
> - return false unless VALID_TREES.include?(parts[0])<br>
> - return false unless VALID_ARCHES.include?(parts[1])<br>
> - return false unless VALID_RELEASE.include?(parts[2])</p>
<p>I don't see these lines added elsewhere. Does it mean that checking is gone?<br></p>
<p>><br>
> begin<br>
> cat_stat = File.stat(cat_file)<br>
><br>
><br>
> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.<br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@lists.opencsw.org">devel@lists.opencsw.org</a><br>
> <a href="https://lists.opencsw.org/mailman/listinfo/devel">https://lists.opencsw.org/mailman/listinfo/devel</a><br>
</p>