瀏覽代碼

Updated vendor directory

Jguer 7 年之前
父節點
當前提交
12bc784f60
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 1 1
      Gopkg.lock
  2. 5 1
      vendor/github.com/mikkeloscar/gopkgbuild/version.go

+ 1 - 1
Gopkg.lock

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

+ 5 - 1
vendor/github.com/mikkeloscar/gopkgbuild/version.go

@@ -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