Exemple #1
0
 def __init__(self, report):
     """
     :param report: A report object to be notified.
     :type report: ProgressReport
     """
     RPMBaseCallback.__init__(self)
     self.report = report
     self.events = set()
Exemple #2
0
 def __init__(self, report):
     """
     :param report: A report object to be notified.
     :type report: ProgressReport
     """
     RPMBaseCallback.__init__(self)
     self.report = report
     self.events = set()
Exemple #3
0
    def __init__(self):
        """
        Constructor

        @type  callback: method
        @param callback: user callback
        """
        # call parent constructor
        RPMBaseCallback.__init__(self)

        # create start lock
        self.__startLock = {}
        self.__lastpackage = ""
Exemple #4
0
    def __init__(self, callback, num_pkgs):
        """
        Constructor

        @type  callback: method
        @param callback: user callback
        """
        # call parent constructor
        RPMBaseCallback.__init__(self)

        # set user callback
        self.__userCallback = callback
        self.__num_pkgs = num_pkgs

        # create start lock
        self.__startLock = {}
Exemple #5
0
    def __init__(self, installroot="/"):
        RPMBaseCallback.__init__(self)

        self.action = {TS_INSTALL: 'Installed',
                       TS_TRUEINSTALL : 'Installed',
                       TS_OBSOLETING: 'Installed',
                       TS_UPDATE : 'Installed',
                       TS_OBSOLETED: 'Removed',
                       TS_UPDATED: 'Removed',
                       TS_ERASE: 'Removed',
                       }

        # FIXME: We only need this whole thing to work around a Yum bug:
        #     https://bugzilla.redhat.com/show_bug.cgi?id=684686#c6
        # When it's fixed, just nuke it out of here
        self.__installroot = installroot
Exemple #6
0
 def __init__(self, sink):
     RPMBaseCallback.__init__(self)
     self._sink = sink
     self._lastaction = None
     self._lastpackage = None
 def __init__(self):
     RPMBaseCallback.__init__(self)
     self.lastmsg = None
     self.lastpackage = None