From fd8c2b0899bfbce07386af245c04eb21dc01cbdf Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 2 Feb 2021 18:09:58 -0600 Subject: Update the logic for determining when the bundle should be registered. The basic rule is that if a non-permanent package is present at the end of the chain, then the bundle should be registered. If no non-permanent packages are present at the end of the chain, then the bundle should not be registered. This required tracking what actually happened with each package during Apply. Include cache status in registration calculation. Include dependency ref-counting when determining whether the bundle should be registered. --- src/engine/apply.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/engine/apply.h') diff --git a/src/engine/apply.h b/src/engine/apply.h index 00e1fceb..548e147d 100644 --- a/src/engine/apply.h +++ b/src/engine/apply.h @@ -72,7 +72,6 @@ HRESULT ApplyRegister( HRESULT ApplyUnregister( __in BURN_ENGINE_STATE* pEngineState, __in BOOL fFailedOrRollback, - __in BOOL fRollback, __in BOOL fSuspend, __in BOOTSTRAPPER_APPLY_RESTART restart ); @@ -83,13 +82,12 @@ HRESULT ApplyCache( __in BURN_PLAN* pPlan, __in HANDLE hPipe, __inout DWORD* pcOverallProgressTicks, - __out BOOL* pfRollback + __inout BOOL* pfRollback ); HRESULT ApplyExecute( __in BURN_ENGINE_STATE* pEngineState, __in_opt HANDLE hCacheThread, __inout DWORD* pcOverallProgressTicks, - __inout BOOL* pfKeepRegistration, __out BOOL* pfRollback, __out BOOL* pfSuspend, __out BOOTSTRAPPER_APPLY_RESTART* pRestart -- cgit v1.2.3-55-g6feb