Updated vendor directory

This commit is contained in:
Jguer 2018-02-16 13:44:11 +00:00
parent 9f734bdf8d
commit 12bc784f60
No known key found for this signature in database
GPG Key ID: 09754DBECF21746F
2 changed files with 6 additions and 2 deletions

2
Gopkg.lock generated
View File

@ -17,7 +17,7 @@
branch = "master"
name = "github.com/mikkeloscar/gopkgbuild"
packages = ["."]
revision = "56a112d1afcdea979889939526de04150d599bc1"
revision = "9fbe9e0515b65906f121834b3e1e18fa0d2b2ab3"
[solve-meta]
analyzer-name = "dep"

View File

@ -16,7 +16,11 @@ type CompleteVersion struct {
}
func (c *CompleteVersion) String() string {
return fmt.Sprintf("%d:%s-%s", c.Epoch, c.Version, c.Pkgrel)
if c.Epoch > 0 {
return fmt.Sprintf("%d:%s-%s", c.Epoch, c.Version, c.Pkgrel)
}
return fmt.Sprintf("%s-%s", c.Version, c.Pkgrel)
}
// NewCompleteVersion creates a CompleteVersion including basic version, epoch