From 67d767cf4e09fc8f7c64867012d206e03c8f22eb Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Tue, 19 Jun 2007 16:08:26 +0000 Subject: [PATCH] Dont re-read the rpm db after install. Only has to be done if in shell mode, any one knows how to know that flag? --- src/zypper-misc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zypper-misc.cc b/src/zypper-misc.cc index cae5f94..e23d945 100644 --- a/src/zypper-misc.cc +++ b/src/zypper-misc.cc @@ -835,7 +835,9 @@ int solve_and_commit (bool non_interactive) { cerr_v << _("committing") << endl; try { - ZYppCommitResult result = God->commit( ZYppCommitPolicy() ); + // FIXME do resync if in shell mode, how + // do I know if in shell mode? + ZYppCommitResult result = God->commit( ZYppCommitPolicy().syncPoolAfterCommit(false) ); if (!result._errors.empty()) retv = ZYPPER_EXIT_ERR_ZYPP; -- 2.7.4