~and471/software-center/dont-test-me

« back to all changes in this revision

Viewing changes to softwarecenter/backend/aptd.py

  • Committer: Michael Vogt
  • Date: 2010-08-04 16:22:26 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100804162226-kirq0u5kdl8pmla6
softwarecenter/backend/aptd.py: set pkgname to "" by default to avoid dbus making it into a str "None"

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
                    enums.get_error_string_from_enum(trans.error_code),
267
267
                    enums.get_error_description_from_enum(trans.error_code),
268
268
                    trans.error_details)
269
 
        # send finished signal
270
 
        pkgname = None
 
269
        # send finished signal, use "" here instead of None, because
 
270
        # dbus mangles a None to a str("None")
 
271
        pkgname = ""
271
272
        try:
272
273
            pkgname = trans.meta_data["sc_pkgname"]
273
274
            del self.pending_transactions[pkgname]