diff --git a/src/cache/cache.go b/src/cache/cache.go index a6970f2..4c5a5bd 100644 --- a/src/cache/cache.go +++ b/src/cache/cache.go @@ -18,7 +18,7 @@ import ( "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 // directly attached to a downloader. @@ -144,7 +144,7 @@ func (c *Cache) Close() { 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) { files, err := os.ReadDir(*pathname) for _, f := range files {