Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Get rid of PackageVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ptabor committed Dec 8, 2023
1 parent a116d78 commit b52e9e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/apk/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ type InstallablePackage interface {
URL() string
PackageName() string
ChecksumString() string
PackageVersion() string
}

// Package represents a single package with the information present in an
Expand All @@ -87,9 +86,8 @@ type Package struct {
Replaces []string `ini:"replaces,,allowshadow"`
}

func (p *Package) String() string { return fmt.Sprintf("%s ver:%s arch:%s", p.Name, p.Version, p.Arch) }
func (p *Package) PackageName() string { return p.Name }
func (p *Package) PackageVersion() string { return p.Version }
func (p *Package) String() string { return fmt.Sprintf("%s ver:%s arch:%s", p.Name, p.Version, p.Arch) }
func (p *Package) PackageName() string { return p.Name }

// Filename returns the package filename as it's named in a repository.
func (p *Package) Filename() string {
Expand Down

0 comments on commit b52e9e6

Please sign in to comment.