diff --git a/downloader_test.go b/downloader_test.go index 6fe6f73..70d2ca4 100644 --- a/downloader_test.go +++ b/downloader_test.go @@ -106,7 +106,7 @@ func TestRequestedFile(t *testing.T) { input, urlPath, key string }{ {"/repo/noPath/foobar-3.3.6-7-x86_64.pkg.tar.zst", "/foobar-3.3.6-7-x86_64.pkg.tar.zst", "noPath/foobar-3.3.6-7-x86_64.pkg.tar.zst"}, - {"/repo/extened/path/bar-222.pkg.tar.zst", "/path/bar-222.pkg.tar.zst", "extened/path/bar-222.pkg.tar.zst"}, + {"/repo/extended/path/bar-222.pkg.tar.zst", "/path/bar-222.pkg.tar.zst", "extended/path/bar-222.pkg.tar.zst"}, {"/repo/upstream/extra/os/x86_64/linux-5.19.pkg.tar.zst", "/extra/os/x86_64/linux-5.19.pkg.tar.zst", "upstream/extra/os/x86_64/linux-5.19.pkg.tar.zst"}, } diff --git a/prefetch_db.go b/prefetch_db.go index 8ef0a50..a7c049f 100644 --- a/prefetch_db.go +++ b/prefetch_db.go @@ -35,7 +35,7 @@ func (pkg Package) getAllPaths() []string { return pkgPaths } -// MirrorDB is a struct which stores all the relevant informations about a requested db file from a client. +// MirrorDB is a struct which stores all the relevant information about a requested db file from a client. // Pacoloco uses this information to replicate the same request when it has to prefetch updated DB files from upstream mirrors // I assume the other files to download are on the same path of the DB type MirrorDB struct {