portage.dbapi._VdbMetadataDelta module

class portage.dbapi._VdbMetadataDelta.VdbMetadataDelta(vardb)

Bases: object

_format_version = '1'
applyDelta(data)
initialize(timestamp)
load()
loadRace()

This calls self.load() and validates the timestamp against the currently loaded self._vardb._aux_cache. If a concurrent update causes the timestamps to be inconsistent, then it reloads the caches and tries one more time before it aborts. In practice, the race is very unlikely, so this will usually succeed on the first try.

recordEvent(event, cpv, slot, counter)