def _updateVersion(self, result, label):
        thisInst = self.getInstance(label)
        try:
            ts = rpm.TransactionSet()
            mi = ts.dbMatch('name', self.name)
            for h in mi:
                if not h: break
                version = AppVersion.makeVersion(self.name, h['version'])
                if version > thisInst.appversion:
                    thisInst.version = version
        except:
            err('exception while setting version')
        return result
dataset/ETHPy150Open OrbitzWorldwide/droned/contrib/redhat/rh_service.py/RPMApplication._updateVersion/original