Skip to content

Commit

Permalink
Clean action flag after a process_action call
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdm committed Aug 7, 2011
1 parent 883dc2d commit 8fe5870
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mdvpkg/urpmi/db.py
Expand Up @@ -644,7 +644,6 @@ def process_actions(self):
removes = []
auto_removes = []
for na, item in self._items.iteritems():
pkg = self._urpmi.get_package(na)
if item['action'] == ACTION_INSTALL:
installs.append(na)
elif item['action'] == ACTION_AUTO_INSTALL:
Expand All @@ -659,7 +658,9 @@ def process_actions(self):
'removing', 'removing'],
[installs, auto_installs,
removes, auto_removes]):
for pkg in [self._urpmi.get_package(na) for na in na_list]:
for na in na_list:
self._items[na]['action'] = ACTION_NO_ACTION
pkg = self._urpmi.get_package(na)
pkg.in_progress = in_progress
pkg.progress = 0.0
self._sort_and_filter()
Expand Down

0 comments on commit 8fe5870

Please sign in to comment.