Skip to content

Commit

Permalink
CFU should not double projects in "Updates" and "My Updates"
Browse files Browse the repository at this point in the history
Ignore files in "Updates", if identical named file is found in "My Updates"
working on #203
  • Loading branch information
lscheffler committed Dec 1, 2023
1 parent 798a501 commit 38bed17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Procedure AddUpdateFolder (loUpdateList, tlIsThor, lcUpdateFolder, lcNeverUpdate
Loop
Endif

*SF 20231201 Ignore file in Updates, if identical named file is found in My Updates; #203
IF tcFromMyUpdates=='No' AND File (tcUpdateFolder + 'My Updates\' + laFiles[lnI, 1]) Then
Loop
ENDIF &&tcFromMyUpdates=='No' AND File (tcUpdateFolder + 'My Updates\' + laFiles[lnI, 1])
*SF 20231201 Ignore file in Updates, if identical named file is found in My Updates; #203

loResult = Execscript (_Screen.cThorDispatcher, 'Thor_Proc_GetUpdaterObject2')
loResult.File = lcFile
loResult.FromMyUpdates = tcFromMyUpdates
Expand Down
6 changes: 6 additions & 0 deletions Installed Files/Thor/Tools/Procs/thor_proc_getupdatelist.prg
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Procedure AddUpdateFolder (loUpdateList, tlIsThor, lcUpdateFolder, lcNeverUpdate
Loop
Endif

*SF 20231201 Ignore file in Updates, if identical named file is found in My Updates; #203
IF tcFromMyUpdates=='No' AND File (tcUpdateFolder + 'My Updates\' + laFiles[lnI, 1]) Then
Loop
ENDIF &&tcFromMyUpdates=='No' AND File (tcUpdateFolder + 'My Updates\' + laFiles[lnI, 1])
*SF 20231201 Ignore file in Updates, if identical named file is found in My Updates; #203

loResult = Execscript (_Screen.cThorDispatcher, 'Thor_Proc_GetUpdaterObject2')
loResult.File = lcFile
loResult.FromMyUpdates = tcFromMyUpdates
Expand Down

0 comments on commit 38bed17

Please sign in to comment.