mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Updated vendored packages
This commit is contained in:
parent
51b2f02eb8
commit
4218a47ef2
5 changed files with 17 additions and 4 deletions
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -17,7 +17,7 @@
|
|||
branch = "master"
|
||||
name = "github.com/mikkeloscar/gopkgbuild"
|
||||
packages = ["."]
|
||||
revision = "a8070a8ab45a0f8cd4201ca7ed0f3efe4897bd2f"
|
||||
revision = "56a112d1afcdea979889939526de04150d599bc1"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
|
|
8
vendor/github.com/mikkeloscar/gopkgbuild/lex.go
generated
vendored
8
vendor/github.com/mikkeloscar/gopkgbuild/lex.go
generated
vendored
|
@ -201,9 +201,13 @@ func lexEnv(l *lexer) stateFn {
|
|||
case isAlphaNumericUnderscore(r):
|
||||
return lexVariable
|
||||
case r == '\n':
|
||||
if l.input[l.start:l.pos] == "\n\n" {
|
||||
buffer := l.input[l.start:l.pos]
|
||||
if buffer == "\n" {
|
||||
if l.peek() == '\n' {
|
||||
l.next()
|
||||
l.emit(itemEndSplit)
|
||||
}
|
||||
l.ignore()
|
||||
l.emit(itemEndSplit)
|
||||
}
|
||||
case r == '\t':
|
||||
l.ignore()
|
||||
|
|
1
vendor/github.com/mikkeloscar/gopkgbuild/pkgbuild_test.go
generated
vendored
1
vendor/github.com/mikkeloscar/gopkgbuild/pkgbuild_test.go
generated
vendored
|
@ -178,6 +178,7 @@ func TestRandomCoreSRCINFOs(t *testing.T) {
|
|||
"systemd",
|
||||
"linux",
|
||||
"pip2pkgbuild",
|
||||
"biicode",
|
||||
}
|
||||
|
||||
for _, srcinfo := range srcinfos {
|
||||
|
|
2
vendor/github.com/mikkeloscar/gopkgbuild/version.go
generated
vendored
2
vendor/github.com/mikkeloscar/gopkgbuild/version.go
generated
vendored
|
@ -16,7 +16,7 @@ type CompleteVersion struct {
|
|||
}
|
||||
|
||||
func (c *CompleteVersion) String() string {
|
||||
return fmt.Sprintf("%d-%s-%d", c.Epoch, c.Version, c.Pkgrel)
|
||||
return fmt.Sprintf("%d:%s-%s", c.Epoch, c.Version, c.Pkgrel)
|
||||
}
|
||||
|
||||
// NewCompleteVersion creates a CompleteVersion including basic version, epoch
|
||||
|
|
8
vendor/github.com/mikkeloscar/gopkgbuild/version_test.go
generated
vendored
8
vendor/github.com/mikkeloscar/gopkgbuild/version_test.go
generated
vendored
|
@ -116,6 +116,14 @@ func TestCompleteVersionComparison(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestCompleteVersionString(t *testing.T) {
|
||||
str := "42:3.14-1"
|
||||
version, _ := NewCompleteVersion(str)
|
||||
if version.String() != str {
|
||||
t.Errorf("%v should equal %s", version, str)
|
||||
}
|
||||
}
|
||||
|
||||
// Benchmark rpmvercmp
|
||||
func BenchmarkVersionCompare(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
|
|
Loading…
Reference in a new issue