dnbert / prm

PRM Allows you to quickly build package repositories, inspired by Jordan Sissels' FPM
MIT License
250 stars 33 forks source link

clean install with debian6 version of ruby (1.8.7) errors out when generating repo. #9

Closed kiranos closed 11 years ago

kiranos commented 11 years ago

ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

prm --type deb --path pool --release squeeze --arch i386,amd64 --generate --component test
Building Path: pool/dists/squeeze/test/binary-i386/
Generating Packages: squeeze : test : binary-i386
Building Path: pool/dists/squeeze/test/binary-amd64/
Generating Packages: squeeze : test : binary-amd64
/usr/lib/ruby/gems/1.8/gems/prm-0.0.11/lib/prm/repo.rb:119:in `initialize': No such file or     directory - templates/deb_release.erb (Errno::ENOENT)
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/lib/prm/repo.rb:119:in `open'
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/lib/prm/repo.rb:119:in `generate_release'
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/lib/prm/repo.rb:27:in `build_apt_repo'
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/lib/prm/repo.rb:12:in `each'
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/lib/prm/repo.rb:12:in `build_apt_repo'
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/lib/prm/repo.rb:206:in `create'
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/bin/prm:43:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/clamp-0.5.1/lib/clamp/command.rb:66:in `run'
    from /usr/lib/ruby/gems/1.8/gems/clamp-0.5.1/lib/clamp/command.rb:124:in `run'
    from /usr/lib/ruby/gems/1.8/gems/prm-0.0.11/bin/prm:47
    from /usr/bin/prm:23:in `load'
    from /usr/bin/prm:23
dnbert commented 11 years ago

Hello, thanks for the report!

This should be addressed in 3dd66c8a020781f9d4b577df585f7d337bc289c3 . I've also pushed version 0.12 to rubygems.org

I tested this against 1.8.7 and 1.9.3, can you verify that 0.12 works appropriately for you?

kiranos commented 11 years ago

prm --type deb --path pool --release squeeze --arch i386,amd64 --generate --component main

/usr/lib/ruby/gems/1.8/gems/prm-0.0.12/lib/prm/repo.rb:119:in `initialize': No such file or directory - templates/deb_release.erb (Errno::ENOENT)

still the same error, though I now find the file with locate: /usr/lib/ruby/gems/1.8/gems/prm-0.0.12/templates/deb_release.erb

wrong path from where repo.rb is looking?

dnbert commented 11 years ago

Yep, that was it! This commit efc0848cef059c1a889586438df2a832a98afaf9 should take care of that issue, I did test on 1.8.7 and 1.9.3 with a full run of PRM [creation, update, download].

Can you verify as well? 0.13 is available on rubygems.

More tests are coming soon, which will help mitigate this clumsiness.

kiranos commented 11 years ago

nice works now! thanks