blueprint: do not append "-" to name-version if version is empty
Previously, bash with empty version was converted to name-version "bash-" that is obviously ill-formed. This commit fixes it.
This commit is contained in:
parent
cd674ea39f
commit
6e6eae24eb
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ func (b *Blueprint) GetPackages() []string {
|
|||
|
||||
func (p Package) ToNameVersion() string {
|
||||
// Omit version to prevent all packages with prefix of name to be installed
|
||||
if p.Version == "*" {
|
||||
if p.Version == "*" || p.Version == "" {
|
||||
return p.Name
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue