mirror of
https://github.com/mudler/luet.git
synced 2025-08-31 14:52:02 +00:00
cmd/build: Now support package without version/selector
This commit is contained in:
committed by
Ettore Di Giacinto
parent
91d05b071d
commit
a7e262cc48
@@ -101,6 +101,11 @@ var buildCmd = &cobra.Command{
|
||||
Fatal("Invalid package string ", a, ": ", err.Error())
|
||||
}
|
||||
|
||||
if gp.Version == "" {
|
||||
gp.Version = "0"
|
||||
gp.Condition = _gentoo.PkgCondGreaterEqual
|
||||
}
|
||||
|
||||
pack := &pkg.DefaultPackage{
|
||||
Name: gp.Name,
|
||||
Version: fmt.Sprintf("%s%s%s", gp.Condition.String(), gp.Version, gp.VersionSuffix),
|
||||
|
Reference in New Issue
Block a user