From 6e6eae24eb6fbc530cd9276dccf6cbc8defc941d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 9 Jun 2020 19:08:24 +0200 Subject: [PATCH] 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. --- internal/blueprint/blueprint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/blueprint/blueprint.go b/internal/blueprint/blueprint.go index 15bc602b6..c090d9a08 100644 --- a/internal/blueprint/blueprint.go +++ b/internal/blueprint/blueprint.go @@ -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 }