Merge lp:~didrocks/software-center/add-remove-multiple into lp:software-center

Proposed by Didier Roche-Tolomelli
Status: Merged
Merged at revision: 922
Proposed branch: lp:~didrocks/software-center/add-remove-multiple
Merge into: lp:software-center
Diff against target: 16 lines (+6/-0)
1 file modified
softwarecenter/backend/aptd.py (+6/-0)
To merge this branch: bzr merge lp:~didrocks/software-center/add-remove-multiple
Reviewer Review Type Date Requested Status
Gary Lasker (community) Approve
Review via email: mp+30865@code.launchpad.net

Description of the change

Add remove_multiple to aptd backend.

To post a comment you must log in.
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Looks good didrocks, thanks! I'll merge it now.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/backend/aptd.py'
2--- softwarecenter/backend/aptd.py 2010-06-30 09:52:39 +0000
3+++ softwarecenter/backend/aptd.py 2010-07-24 22:11:40 +0000
4@@ -124,6 +124,12 @@
5 self._on_trans_error(error)
6
7 @inline_callbacks
8+ def remove_multiple(self, pkgnames, appnames, iconnames):
9+ """ queue a list of packages for removal """
10+ for pkgname, appname, iconname in zip(pkgnames, appnames, iconnames):
11+ yield self.remove(pkgname, appname, iconname)
12+
13+ @inline_callbacks
14 def install(self, pkgname, appname, iconname):
15 """ install a single package """
16 self.emit("transaction-started")