Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean action flag after a process_action call

  • Loading branch information...
commit 8fe587044e60e5242d6cea0ddfdb73878bbda0fe 1 parent 883dc2d
jvdm authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 mdvpkg/urpmi/db.py
View
5 mdvpkg/urpmi/db.py
@@ -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:
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.