Package: doc-base
Version: 0.8.7
Severity: normal

I'm not sure what the severity of this should be or whether it should
apply to doc-base or dhelp instead. The program seems to install
correctly, but there is an unhandled exception being thrown in Ruby code.

The error is most likely caused by using an uninitialized
variable. An easy solution would be to test the abstract function (in
dhelp) as,

def abstract
  return '' if @abstract.nil?
  @abstract.strip
end

alternatively, you can write,

def abstract
  @abstract.strip
rescue
  ''
end


The error message follows,

Preparing to replace doc-base 0.8.6 (using .../doc-base_0.8.7_all.deb)
...
NoMethodError: undefined method `strip' for nil:NilClass
(/usr/lib/ruby/1.8/dhelp.rb:178:in `abstract'
(erb):42:in `export_section_page'
(erb):34:in `each'
(erb):34:in `export_section_page'
/usr/lib/ruby/1.8/dhelp/exporter/html.rb:92:in `export_section_page'
/usr/lib/ruby/1.8/dhelp/exporter/html.rb:42:in `export'
/usr/lib/ruby/1.8/dhelp/exporter/html.rb:41:in `each_pair'
/usr/lib/ruby/1.8/dhelp/exporter/html.rb:41:in `export'
/usr/sbin/dhelp_parse:121:in `main'
/usr/lib/ruby/1.8/commandline/application.rb:250:in `run'
/usr/lib/ruby/1.8/commandline/application.rb:269:in `__set_auto_run'
/usr/sbin/dhelp_parse:90)
Unpacking replacement doc-base ...




-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (5, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-k7 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages doc-base depends on:
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 
ii  scrollkeeper                  0.3.14-15  A free electronic cataloging syste

doc-base recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to