@@ -42,7 +42,7 @@ func (lm *LibrariesManager) InstallPrerequisiteCheck(indexLibrary *librariesinde
42
42
var replaced * libraries.Library
43
43
if installedLibs , have := lm .Libraries [saneName ]; have {
44
44
for _ , installedLib := range installedLibs .Alternatives {
45
- if installedLib .Location != libraries .Sketchbook {
45
+ if installedLib .Location != libraries .User {
46
46
continue
47
47
}
48
48
if installedLib .Version .Equal (indexLibrary .Version ) {
@@ -52,9 +52,9 @@ func (lm *LibrariesManager) InstallPrerequisiteCheck(indexLibrary *librariesinde
52
52
}
53
53
}
54
54
55
- libsDir := lm .getSketchbookLibrariesDir ()
55
+ libsDir := lm .getUserLibrariesDir ()
56
56
if libsDir == nil {
57
- return nil , nil , fmt .Errorf ("sketchbook directory not set" )
57
+ return nil , nil , fmt .Errorf ("User directory not set" )
58
58
}
59
59
60
60
libPath := libsDir .Join (saneName )
@@ -68,9 +68,9 @@ func (lm *LibrariesManager) InstallPrerequisiteCheck(indexLibrary *librariesinde
68
68
69
69
// Install installs a library on the specified path.
70
70
func (lm * LibrariesManager ) Install (indexLibrary * librariesindex.Release , libPath * paths.Path ) error {
71
- libsDir := lm .getSketchbookLibrariesDir ()
71
+ libsDir := lm .getUserLibrariesDir ()
72
72
if libsDir == nil {
73
- return fmt .Errorf ("sketchbook directory not set" )
73
+ return fmt .Errorf ("User directory not set" )
74
74
}
75
75
return indexLibrary .Resource .Install (lm .DownloadsDir , libsDir , libPath )
76
76
}
0 commit comments