fixed links being incorrect
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user