Bug #819
provider/package/portage.rb: def package_name returns wrong package name
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 0.24.0 | |||
| Affected Puppet version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
in gentoo, package types don’t work well.
ex.
package { "vim": ensure => installed }
debug message:
debug: package provider portage: Executing '/usr/bin/eix --nocolor --format[ ] [ ] --exact --name vim' debug: //default/unix/Package[vim]: Changing ensure debug: //default/unix/Package[vim]: 1 change(s) debug: //default/unix/Package[vim]/ensure: setting present (currently absent) debug: package provider portage: Executing '/usr/bin/emerge /vim' err: //default/unix/Package[vim]/ensure: change from absent to present failed: Execution of '/usr/bin/emerge /vim' returned 256: Calculating dependencies . !!! '/vim' is not a valid package atom. !!! Please check ebuild(5) for full details. !!! (Did you specify a version but forget to prefix with '='?)
it should be set ‘app-editors/vim’ instead of ‘/vim’. The reason is @resource[:category] is empty.
a patch is attatched.
History
Updated by Anonymous over 4 years ago
- Status changed from 1 to 2
Updated by Anonymous over 4 years ago
- Status changed from 2 to Closed
- 7 set to fixed
Fixed in commit:ec58355ac0c42713bb1c661c94cb13793dd95768. Applied patch provided by matsuu.