Rapt update failure

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 methodsplit’ 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:inopen’
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:innew’
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:inupdate’
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?

Urban

urban@fish:~$ ruby -v
ruby 1.7.2 (2002-06-20) [i686-linux]

···


A good awakening have ever Gotama’s disciples, whose minds are always
rejoicing in non violence. 300

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

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

···

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?

[…]

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

It does exist but has a size of 0.

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

urban@fish:~$ cat .rpkgrc
source = http://www.allruby.com/rpkg unstable main
ext = /home/urban/lib/ruby/i686-linux
doc = /home/urban/lib/ruby/doc
lib = /home/urban/lib/ruby
test = /home/urban/lib/ruby/tests
var = /home/urban/lib/ruby/rpkg-var
bin = /home/urban/bin

As the whole thing is in my homedir I must have write permission.

Urban

···

Massimiliano Mirra list@chromatic-harp.com wrote:


One should avoid evil like a merchant with much goods and only a small
escort avoids a dangerous road, and like a man who loves life avoids
poison. 123

Everything looks ok. I’m sending you offlist a new version that
prints more debugging information, please try that and we’ll hopefully
see where the thing stumbles.

Massimiliano

···

On Sun, Jun 23, 2002 at 06:46:18PM +0900, Urban Hafner wrote:

urban@fish:~$ cat .rpkgrc
source = http://www.allruby.com/rpkg unstable main
ext = /home/urban/lib/ruby/i686-linux
doc = /home/urban/lib/ruby/doc
lib = /home/urban/lib/ruby
test = /home/urban/lib/ruby/tests
var = /home/urban/lib/ruby/rpkg-var
bin = /home/urban/bin

As the whole thing is in my homedir I must have write permission.