@@ -42,7 +42,7 @@ func (lm *LibrariesManager) InstallPrerequisiteCheck(indexLibrary *librariesinde
4242 var replaced * libraries.Library
4343 if installedLibs , have := lm .Libraries [saneName ]; have {
4444 for _ , installedLib := range installedLibs .Alternatives {
45- if installedLib .Location != libraries .Sketchbook {
45+ if installedLib .Location != libraries .User {
4646 continue
4747 }
4848 if installedLib .Version .Equal (indexLibrary .Version ) {
@@ -52,9 +52,9 @@ func (lm *LibrariesManager) InstallPrerequisiteCheck(indexLibrary *librariesinde
5252 }
5353 }
5454
55- libsDir := lm .getSketchbookLibrariesDir ()
55+ libsDir := lm .getUserLibrariesDir ()
5656 if libsDir == nil {
57- return nil , nil , fmt .Errorf ("sketchbook directory not set" )
57+ return nil , nil , fmt .Errorf ("User directory not set" )
5858 }
5959
6060 libPath := libsDir .Join (saneName )
@@ -68,9 +68,9 @@ func (lm *LibrariesManager) InstallPrerequisiteCheck(indexLibrary *librariesinde
6868
6969// Install installs a library on the specified path.
7070func (lm * LibrariesManager ) Install (indexLibrary * librariesindex.Release , libPath * paths.Path ) error {
71- libsDir := lm .getSketchbookLibrariesDir ()
71+ libsDir := lm .getUserLibrariesDir ()
7272 if libsDir == nil {
73- return fmt .Errorf ("sketchbook directory not set" )
73+ return fmt .Errorf ("User directory not set" )
7474 }
7575 return indexLibrary .Resource .Install (lm .DownloadsDir , libsDir , libPath )
7676}
0 commit comments