updated file path regex
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4ec9a82d3d
commit
33b316e13c
4
src/cache/cache.go
vendored
4
src/cache/cache.go
vendored
@ -18,7 +18,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var filepattern = regexp.MustCompile(`((In)?Release(.gpg)?|Packages.(gz|bz2))`)
|
var filepattern = regexp.MustCompile(`((In)?Release(\.gpg)?|Packages\.(gz|bz2))`)
|
||||||
|
|
||||||
// Reader is a generic interface for reading cache entries either from disk or
|
// Reader is a generic interface for reading cache entries either from disk or
|
||||||
// directly attached to a downloader.
|
// directly attached to a downloader.
|
||||||
@ -144,7 +144,7 @@ func (c *Cache) Close() {
|
|||||||
c.waitGroup.Wait()
|
c.waitGroup.Wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Migrate converts old files to newer format
|
// Migrate make file migrations with older versions
|
||||||
func (c *Cache) Migrate(pathname *string) (err error) {
|
func (c *Cache) Migrate(pathname *string) (err error) {
|
||||||
files, err := os.ReadDir(*pathname)
|
files, err := os.ReadDir(*pathname)
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
|
Loading…
Reference in New Issue
Block a user