~renanrodrigo/update-manager/ss

« back to all changes in this revision

Viewing changes to UpdateManager/MetaReleaseGObject.py

  • Committer: Brian Murray
  • Date: 2021-12-10 20:29:40 UTC
  • Revision ID: brian@canonical.com-20211210202940-9f5gb8wuau1fjojc
If --debug is used on the command line pass it along to the metarelease
checker. (LP: #1880996)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                             ())
40
40
    }
41
41
 
42
 
    def __init__(self, useDevelopmentRelease=False, useProposed=False):
 
42
    def __init__(self, useDevelopmentRelease=False, useProposed=False,
 
43
                 debug=False):
43
44
        GObject.GObject.__init__(self)
44
 
        MetaReleaseCore.__init__(self, useDevelopmentRelease, useProposed)
 
45
        MetaReleaseCore.__init__(self, useDevelopmentRelease, useProposed,
 
46
                                 debug)
45
47
        # in the gtk space to test if the download already finished
46
48
        # this is needed because gtk is not thread-safe
47
49
        GLib.timeout_add_seconds(1, self.check)