From 5260daca777cd79520a22fd60fd6873d00024782 Mon Sep 17 00:00:00 2001 From: Oliver Kurth Date: Wed, 13 Apr 2022 15:14:03 -0700 Subject: [PATCH] do not mark packages as user installed if only downloading --- client/rpmtrans.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)