@@ -527,7 +527,7 @@ private function handleUpdate(): int
527527 return static ::SUCCESS ;
528528 }
529529
530- private function checkCustomSourceUpdate (string $ name , array $ lock , array $ config , int $ current , int $ total ): bool
530+ private function checkCustomSourceUpdate (string $ name , array $ lock , array $ config , int $ current , int $ total ): ? array
531531 {
532532 $ classes = FileSystem::getClassesPsr4 (ROOT_DIR . '/src/SPC/store/source ' , 'SPC\store\source ' );
533533 foreach ($ classes as $ class ) {
@@ -537,21 +537,15 @@ private function checkCustomSourceUpdate(string $name, array $lock, array $confi
537537 if (is_a ($ class , CustomSourceBase::class, true ) && $ matches ) {
538538 try {
539539 $ config ['source_name ' ] = $ name ;
540- $ updated = (new $ class ())->update ($ lock , $ config );
541- if ($ updated ) {
542- logger ()->info ("[ {$ current }/ {$ total }] Source ' {$ name }' updated " );
543- } else {
544- logger ()->info ("[ {$ current }/ {$ total }] Source ' {$ name }' is up to date " );
545- }
546- return $ updated ;
540+ return (new $ class ())->update ($ lock , $ config );
547541 } catch (\Throwable $ e ) {
548542 logger ()->warning ("[ {$ current }/ {$ total }] Failed to check ' {$ name }': {$ e ->getMessage ()}" );
549- return false ;
543+ return null ;
550544 }
551545 }
552546 }
553- logger ()->warning ("[ {$ current }/ {$ total }] Custom source handler for ' {$ name }' not found " );
554- return false ;
547+ logger ()->debug ("[ {$ current }/ {$ total }] Custom source handler for ' {$ name }' not found " );
548+ return null ;
555549 }
556550
557551 /**
@@ -570,13 +564,12 @@ private function checkArchiveSourceUpdate(string $name, array $lock, array $conf
570564 $ locked_filename = $ lock ['filename ' ] ?? '' ;
571565
572566 // Skip local types that don't support version detection
573- if (in_array ($ type , ['url ' , ' local ' , 'unknown ' ])) {
567+ if (in_array ($ type , ['local ' , 'unknown ' ])) {
574568 logger ()->debug ("[ {$ current }/ {$ total }] Source ' {$ name }' (type: {$ type }) doesn't support version detection, skipping " );
575569 return false ;
576570 }
577571
578572 try {
579- // Get latest version info
580573 $ latest_info = match ($ type ) {
581574 'ghtar ' => Downloader::getLatestGithubTarball ($ name , $ config ),
582575 'ghtagtar ' => Downloader::getLatestGithubTarball ($ name , $ config , 'tags ' ),
@@ -670,7 +663,7 @@ private function downloadSourceForUpdate(string $name, array $config, int $curre
670663 {
671664 logger ()->info ("[ {$ current }/ {$ total }] Downloading ' {$ name }'... " );
672665
673- // Remove old lock entry (this triggers cleanup of old files)
666+ // Remove old lock entry
674667 LockFile::put ($ name , null );
675668
676669 // Download new version
0 commit comments