Updated vendor directory

This commit is contained in:
Jguer committed 2018-02-16 13:44:11 +00:00
1 parent 9f734bdf8d
commit 12bc784f60
2 files changed
+6 -2

No files matched your search

Generated
+1 -1
View File
@@ -17,7 +17,7 @@
branch = "master"
name = "github.com/mikkeloscar/gopkgbuild"
packages = ["."]
revision = "56a112d1afcdea979889939526de04150d599bc1"
revision = "9fbe9e0515b65906f121834b3e1e18fa0d2b2ab3"
[solve-meta]
analyzer-name = "dep"
+5 -1
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