diff --git a/client/rpmtrans.c b/client/rpmtrans.c index 88e47c23..08ec98fb 100644 --- a/client/rpmtrans.c +++ b/client/rpmtrans.c @@ -99,10 +99,10 @@ TDNFRpmExecTransaction( if (!nDownloadOnly) { dwError = TDNFRunTransaction(&ts, pTdnf); BAIL_ON_TDNF_ERROR(dwError); - } - dwError = TDNFMarkAutoInstalled(pTdnf, pSolvedInfo); - BAIL_ON_TDNF_ERROR(dwError); + dwError = TDNFMarkAutoInstalled(pTdnf, pSolvedInfo); + BAIL_ON_TDNF_ERROR(dwError); + } cleanup: if(ts.pTS)