File: 0001-use-github.com-cheggaaa-pb.patch

package info (click to toggle)
gost 0.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,608 kB
  • sloc: makefile: 2
file content (63 lines) | stat: -rw-r--r-- 1,638 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From: Shengjing Zhu <zhsj@debian.org>
Date: Wed, 16 Aug 2023 22:00:57 +0800
Subject: use github.com/cheggaaa/pb

---
 db/debian.go | 2 +-
 db/redhat.go | 2 +-
 db/redis.go  | 2 +-
 util/util.go | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/db/debian.go b/db/debian.go
index 19a17ea..8eac955 100644
--- a/db/debian.go
+++ b/db/debian.go
@@ -7,7 +7,7 @@ import (
 	"github.com/jinzhu/gorm"
 	"github.com/knqyf263/gost/models"
 	"github.com/knqyf263/gost/util"
-	pb "gopkg.in/cheggaaa/pb.v1"
+	pb "github.com/cheggaaa/pb"
 )
 
 func (r *RDBDriver) GetDebian(cveID string) *models.DebianCVE {
diff --git a/db/redhat.go b/db/redhat.go
index c1c4fe5..7c149e9 100644
--- a/db/redhat.go
+++ b/db/redhat.go
@@ -8,7 +8,7 @@ import (
 	"github.com/jinzhu/gorm"
 	"github.com/knqyf263/gost/models"
 	"github.com/knqyf263/gost/util"
-	pb "gopkg.in/cheggaaa/pb.v1"
+	pb "github.com/cheggaaa/pb"
 )
 
 func (r *RDBDriver) GetAfterTimeRedhat(after time.Time) (allCves []models.RedhatCVE, err error) {
diff --git a/db/redis.go b/db/redis.go
index d9886f5..b83d87d 100644
--- a/db/redis.go
+++ b/db/redis.go
@@ -9,7 +9,7 @@ import (
 	"github.com/inconshreveable/log15"
 	"github.com/knqyf263/gost/models"
 	"github.com/labstack/gommon/log"
-	"gopkg.in/cheggaaa/pb.v1"
+	"github.com/cheggaaa/pb"
 )
 
 /**
diff --git a/util/util.go b/util/util.go
index aa53625..57ebd8f 100644
--- a/util/util.go
+++ b/util/util.go
@@ -12,7 +12,7 @@ import (
 	"github.com/jinzhu/gorm"
 	"github.com/parnurzeal/gorequest"
 	"github.com/spf13/viper"
-	pb "gopkg.in/cheggaaa/pb.v1"
+	pb "github.com/cheggaaa/pb"
 )
 
 // GenWorkers generate workders