From bafb459f81642c5c3e2c02ef3c4e086a450f3f01 Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Mon, 3 Dec 2007 13:12:24 +0000 Subject: [PATCH] - sync pool after commit when in shell --- src/zypper-misc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zypper-misc.cc b/src/zypper-misc.cc index 11154fc..c606137 100644 --- a/src/zypper-misc.cc +++ b/src/zypper-misc.cc @@ -1428,8 +1428,8 @@ void solve_and_commit (Zypper & zypper) //! \todo fix the media reporting correctly gData.show_media_progress_hack = true; - // FIXME do resync if in shell mode, how do I know if in shell mode? - ZYppCommitResult result = God->commit( ZYppCommitPolicy().syncPoolAfterCommit(false) ); + ZYppCommitResult result = God->commit( + ZYppCommitPolicy().syncPoolAfterCommit(zypper.runningShell())); was_installed = true; gData.show_media_progress_hack = false; -- 2.7.4