[Kimchi-devel] [PATCH] mockmodel: Reset packages after updating system
Aline Manera
alinefm at linux.vnet.ibm.com
Thu Mar 13 19:07:27 UTC 2014
From: Aline Manera <alinefm at br.ibm.com>
After updating system any more packages should be listed or user will
think the update failed.
Signed-off-by: Aline Manera <alinefm at br.ibm.com>
---
src/kimchi/mockmodel.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/kimchi/mockmodel.py b/src/kimchi/mockmodel.py
index b70cc1b..743c7c6 100644
--- a/src/kimchi/mockmodel.py
+++ b/src/kimchi/mockmodel.py
@@ -1122,6 +1122,10 @@ class MockSoftwareUpdate(object):
msgs.append("All packages updated")
cb('\n'.join(msgs), True)
+ # After updating all packages any package should be listed to be
+ # updated, so reset self._packages
+ self._packages = {}
+
class MockRepositories(object):
def __init__(self):
--
1.7.10.4
More information about the Kimchi-devel
mailing list