[DRE-maint] Bug#786841: generate_or_update_gem_to_package_data: undefined method `invert' for false:FalseClass (NoMethodError)

Antonio Terceiro terceiro at debian.org
Fri Jun 12 14:13:45 UTC 2015


Control: tag -1 pending

On Tue, May 26, 2015 at 01:20:31AM +0200, Christian Hofstaedtler wrote:
> Package: gem2deb
> Version: 0.16
> Severity: normal
> 
> I've been observing the following error while running `gem2deb molinillo`:
> -----
> molinillo doesn't seem to exist. Let's try to download it with 'gem fetch molinillo'
> gem fetch molinillo
> Downloaded molinillo-0.2.3
> -- Creating source tarball from molinillo-0.2.3.gem ...
> tar xfm /home/ch/Debian/pkg-ruby-extras/molinillo-0.2.3.gem
> "tar xzfm data.tar.gz"
> "zcat metadata.gz > metadata.yml"
> tar czf /home/ch/Debian/pkg-ruby-extras/molinillo-0.2.3.tar.gz molinillo-0.2.3
> -- Successfully created ./molinillo-0.2.3.tar.gz
> 
> -- Creating Debian source package from ./molinillo-0.2.3.tar.gz ...
> /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:145:in `generate_or_update_gem_to_package_data': undefined method `invert' for false:FalseClass (NoMethodError)
> 	 from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:64:in `initialize'
> 	 from /usr/bin/gem2deb:96:in `new'
> 	 from /usr/bin/gem2deb:96:in `<main>'
> -----
> 
> A bit of debugging suggests that this happens because my apt-file cache
> was empty, and then apt-file search returns an empty result, yielding
> an invalid YAML file (after the sed processing), causing YAML.load
> on dh_make_ruby.rb:145 to return false.
> 
> Maybe a check for false or a too-small cache file could be added
> in generate_or_update_gem_to_package_data.

Yeah. I just committed a fix for this in git.

> AFAICT, the version in jessie is also affected by this.

It is not, the version in jessie doesn't have this feature at all.

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150612/3aff35dc/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list