pkg/package: Add method SetVersion to DefaultPackage

This commit is contained in:
Daniele Rondina
2020-08-30 08:53:37 +02:00
parent 908b6d2bd4
commit 045d25bb28

View File

@@ -64,6 +64,7 @@ type Package interface {
GetCategory() string
GetVersion() string
SetVersion(string)
RequiresContains(PackageDatabase, Package) (bool, error)
Matches(m Package) bool
BumpBuildVersion() error
@@ -327,6 +328,9 @@ func (p *DefaultPackage) GetName() string {
func (p *DefaultPackage) GetVersion() string {
return p.Version
}
func (p *DefaultPackage) SetVersion(v string) {
p.Version = v
}
func (p *DefaultPackage) GetDescription() string {
return p.Description
}