Date: Fri, 27 Nov 2009 12:21:10 +0100 From: Ollivier Robert <roberto@keltia.freenix.fr> To: ruby@FreeBSD.org Subject: Error with current portupgrade-devel Message-ID: <20091127112110.GB69383@roberto-al.eurocontrol.fr>
next in thread | raw e-mail | index | archive | help
Hello, I'm using portupgrade from pktools-20091029 and I've hit a bug which seems to me a rather obvious bug. 590 [11:59] root@ng:ports/net# portinstall avahi [Gathering depends for net/avahi ............./usr/local/sbin/portinstall:878:in `get_all_depends': private method `scan' called for #<Set: {}> (NoMethodError) from /usr/local/sbin/portinstall:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:870:in `get_all_depends' from /usr/local/sbin/portinstall:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:870:in `get_all_depends' from /usr/local/sbin/portinstall:887:in `get_notinstalled_depends' from /usr/local/sbin/portinstall:773:in `main' from /usr/local/sbin/portinstall:751:in `each' from /usr/local/sbin/portinstall:751:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1248:in `order!' from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order' from /usr/local/sbin/portinstall:559:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portinstall:231:in `new' from /usr/local/sbin/portinstall:231:in `main' from /usr/local/sbin/portinstall:2213 Problem is, there is no #scan method in the Set class. 869 children_deps = Set.new 870 depends.each do |dep| 871 children_deps.merge(get_all_depends(dep, parents_list)) if !dep.nil? 872 end 873 if !children_deps.nil? 874 depends.merge(children_deps) 875 end 876 877 STDERR.puts ' done]' if first 878 $depends[origin] = depends.scan(/.*\n/).compact <<<<<<< 879 else 880 $depends[origin] 881 end 882 end I'll trace it to see what exactly could be in depends and see what it is supposed to achieve. But am I the only one with this? Cheers, -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr In memoriam to Ondine : http://ondine.keltia.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091127112110.GB69383>