diff --git a/PKGBUILD b/PKGBUILD index 074be2e..df042cc 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Eric Phillips pkgname=pkgstash -pkgver=0.0.3 +pkgver=0.0.4 pkgrel=1 pkgdesc='Sparse caching pacman server' arch=(x86_64) @@ -11,7 +11,7 @@ license=(GPL-2.0-only) provides=(pkgstash) conflicts=(pkgstash) source=("https://github.com/ewpt3ch/${pkgname}/releases/download/v${pkgver}/pkgstash-v${pkgver}-$CARCH.tar.gz") -sha256sums=('209a1036c9123c01fc4639ad17e88a6da7ee5d1c3951192e705f17ba590fbeb6') +sha256sums=('0f94dc7d712b1df4383dce521ffc388250f6703a69a0210a6277ac31f0cd918e') package() { cd deploy diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 5db32a2..e11585d 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -93,7 +93,7 @@ func checkSymLinks(cr *os.Root, repos []string) error { return err } lnPath := filepath.Join(dirPath, repo+".db") - srcPath := filepath.Join(dirPath, repo+".db.tar.gz") + srcPath := repo + ".db.tar.gz" if _, err := cr.Lstat(lnPath); err == nil { continue // link exists } diff --git a/internal/cache/cache_test.go b/internal/cache/cache_test.go index 3fcb9c4..7e418f1 100644 --- a/internal/cache/cache_test.go +++ b/internal/cache/cache_test.go @@ -223,7 +223,7 @@ func TestCreateSymlinks(t *testing.T) { for _, repo := range repos { lnfile := filepath.Join(repo, "os/x86_64", repo+".db") - expected := lnfile + ".tar.gz" + expected := repo + ".db.tar.gz" lnval, err := cr.Readlink(lnfile) if err != nil { t.Errorf("%s has no link: %v", repo, err)