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
+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)