@@ -121,12 +121,11 @@ Repositories[list_List, OptionsPattern[] ] := Module[{projectDir, info, repos, c
121121 ,
122122 (* we have local versions of all packages *)
123123 (* we need to compare them to one, which were just loaded via internet *)
124-
125- If [! ContainsExactly [Keys [repos ], Select [Keys [cache ], Function [item , Head [item [[1 ]]] =!= Anonymous ] ] ],
126- Echo ["WLJS Extensions >> detected local changes. Ignoring..." ];
127- ];
128- (* UPD: more harm than actualy practical *)
129- (* If[!ContainsExactly[Keys[repos], Select[Keys[cache], Function[item, Head[item[[1]]] =!= Anonymous] ] ],
124+
125+ (* UPD: *)
126+ (* this check was removed *)
127+
128+ If [False && ! ContainsExactly [Keys [repos ], Select [Keys [cache ], Function [item , Head [item [[1 ]]] =!= Anonymous ] ] ],
130129 Echo ["WLJS Extensions >> out of sync! Danger! The data will be deleted" ];
131130 With [{
132131 temp = FileNameJoin [{projectDir , "wljs_packages_backup" }],
@@ -136,14 +135,16 @@ Repositories[list_List, OptionsPattern[] ] := Module[{projectDir, info, repos, c
136135 If [FileExistsQ [temp ], DeleteDirectory [temp , DeleteContents -> True ] ];
137136 CopyDirectory [origin , temp ];
138137 DeleteDirectory [origin ];
139- ]; *)
138+ ];
140139
141140 Echo ["WLJS Extensions >> installing" ];
142141 repos = InstallPaclet [projectDir ] /@ repos ;
143142
144143 ,
145144
146-
145+ If [! ContainsExactly [Keys [repos ], Select [Keys [cache ], Function [item , Head [item [[1 ]]] =!= Anonymous ] ] ],
146+ Echo ["WLJS Extensions >> note: local changes detected. " ];
147+ ];
147148
148149 current = (# -> cache [# ])& /@ Intersection [Keys [repos ], Keys [cache ] ] // Association ;
149150 new = (# -> repos [# ])& /@ Complement [Keys [repos ], Keys [cache ] ] // Association ;
0 commit comments