Logo Search packages:      
Sourcecode: mago version File versions  Download package

def mago::application::ubuntu::UpdateManager::get_available_updates (   self  ) 

It gets the name of the packages of the available updates 

@return: A list with the available updates

Definition at line 257 of file ubuntu.py.

00257                                    :
        """
        It gets the name of the packages of the available updates 

        @return: A list with the available updates
        """

        updateManager = ooldtp.context(self.name)

        available_updates = []

        try:
            table  = updateManager.getchild(self.TBL_UPDATES, role = 'table')
            updates_table = table[0]

            for i in range(0, updates_table.getrowcount(), 1):
                text = updates_table.getcellvalue(i, 1)
                candidate = text.split('\n')[0]
                if candidate.find(self.BAN_LIST) == -1:
                    available_updates.append(candidate)
                ldtp.wait(1)
        except ldtp.LdtpExecutionError:
            raise ldtp.LdtpExecutionError, "Error getting the updates table."

        return available_updates

    def select_update(self, name):


Generated by  Doxygen 1.6.0   Back to index