On Sun, Jun 23, 2002 at 06:11:07PM +0900, Urban Hafner wrote:
> Hello,
> so I tried to get rpkg working. I made the setup and installed it. But
> when I wanted to do rapt update, I got this:
> 
> urban@fish:~$ rapt update
> Looking for file dists/unstable/main/binary-i386-linux/Packages...
> Getting file... done.
> /usr/local/lib/ruby/site_ruby/1.7/rpkg/database.rb:51:in `parse': private method `split' called for nil (NoMethodError)
> 	from /usr/local/lib/ruby/site_ruby/1.7/rpkg/database.rb:46:in `initialize'
> 	from /usr/local/lib/ruby/site_ruby/1.7/rpkg/database.rb:45:in `open'
> 	from /usr/local/lib/ruby/site_ruby/1.7/rpkg/database.rb:45:in `initialize'
> 	from /usr/local/lib/ruby/site_ruby/1.7/rpkg/rapt.rb:51:in `new'
> 	from /usr/local/lib/ruby/site_ruby/1.7/rpkg/rapt.rb:51:in `load_available'
> 	from /usr/local/lib/ruby/site_ruby/1.7/rpkg/rapt.rb:171:in `update'
> 	from /usr/local/bin/rapt:14
> 
> It seem like it can't get the Package file. Is it something with the
> rpkg version (rpkg-0.3.pre4.tar.gz) or is it the server?

Well, most likely it is some stupid bug I managed to put in. :-)

Does the file `available' exist in the dir you setup as `var'?  This
lets you know whether the Packages file was downloaded. 

Have you got writing permissions for the `var' directory when you
launch `rapt update'?

Massimiliano