Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency calculation on remove, multiple versions of same package installed #30

Open
jheiss opened this issue Aug 17, 2012 · 0 comments
Labels

Comments

@jheiss
Copy link
Member

jheiss commented Aug 17, 2012

Dependency calculation seems to be broken when deciding whether the user can remove a package when there are multiple versions of the same package installed. In this case I had two versions of ruby installed and attempted to remove one. There should not have been a dependency problem with removing the package.

jheiss@typhoon:~> tpkg -q ruby
ruby-1.9.3-p194-1-redhat6-x86_64.tpkg
ruby-1.8.7-p358-1-redhat6-x86_64.tpkg

jheiss@typhoon:~> tpkg -r ruby-1.9.3-p194-1-redhat6-x86_64.tpkg
Executing with sudo
[sudo] password for jheiss:
/usr/lib/ruby/site_ruby/1.8/tpkg.rb:4208:in remove': Package nventory-1.62.8.tpkg depends on gem-facter (RuntimeError) from /usr/lib/ruby/site_ruby/1.8/tpkg.rb:4201:ineach'
from /usr/lib/ruby/site_ruby/1.8/tpkg.rb:4201:in remove' from /usr/lib/ruby/site_ruby/1.8/tpkg.rb:4198:ineach'
from /usr/lib/ruby/site_ruby/1.8/tpkg.rb:4198:in `remove'
from /usr/bin/tpkg:611

jheiss@typhoon:~> tpkg --qd gem-facter
Package gem-facter-1.5.8-1.tpkg depends on:
name: rubygems
type: tpkg

jheiss@typhoon:~> tpkg --qd rubygems
Package 'rubygems' does not depend on other packages

Was: https://sourceforge.net/apps/trac/tpkg/ticket/49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant