fixed links being incorrect

This commit is contained in:
2026-05-08 11:54:41 -06:00
parent 5aca006249
commit 2d42e8c403
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# Maintainer: Eric Phillips <eric@ewpt3ch.dev>
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
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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)