~mvo/software-center/plugin-support

« back to all changes in this revision

Viewing changes to softwarecenter/apt/apthistory.py

  • Committer: Michael Vogt
  • Date: 2010-06-21 12:54:37 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100621125437-300nmzuig7ll2cot
add information about "upgraded" packages to the history pane 
(thanks to seb128 for the suggestion)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
class Transaction(object):
35
35
    """ Represents an apt transaction 
36
36
 
37
 
    Attributes:
 
37
o    Attributes:
38
38
    - 'start_date': the start date/time of the transaction as datetime
39
39
    - 'install', 'upgrade', 'downgrade', 'remove', 'purge':
40
40
        contain the list of packagenames affected by this action
50
50
        for k in self.PKGACTIONS+["Error"]:
51
51
            attr = k.lower()
52
52
            if k in sec:
53
 
                value = map(string.strip, sec[k].split(","))
 
53
                value = map(string.strip, sec[k].split("),"))
54
54
            else:
55
55
                value = []
56
56
            setattr(self, attr, value)