File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,19 +308,19 @@ public static void SyncManager(bool init = false)
308308 if ( node . Name != "component" ) return ;
309309
310310 var component = new Component ( node ) ;
311- bool update = false ;
312311
313- if ( ComponentTracker . Downloaded . Exists ( c => c . ID == component . ID ) )
312+ bool outdated = false ;
313+ bool downloaded = ComponentTracker . Downloaded . Exists ( c => c . ID == component . ID ) ;
314+
315+ if ( downloaded )
314316 {
315317 string localHash = File . ReadLines ( component . InfoFile ) . First ( ) . Split ( ' ' ) [ 0 ] ;
316- update = localHash != component . Hash ;
317- }
318- else if ( component . Required )
319- {
320- update = true ;
318+ outdated = localHash != component . Hash && component . ID != "core-database" ;
321319 }
320+
321+ if ( ! downloaded && component . Required ) outdated = true ;
322322
323- if ( update )
323+ if ( outdated )
324324 {
325325 ComponentTracker . Outdated . Add ( component ) ;
326326
You can’t perform that action at this time.
0 commit comments