def create(name, initvalue): ver = common.uint64(int(initvalue)) open(name+".buildinfo", "wb").write(common.struct2raw(ver)) return common.struct2raw(ver)
def bump(name, value): ver = common.raw2struct(get(name), common.uint64) ver.uint += value open(name + ".buildinfo", "wb").write(common.struct2raw(ver)) return common.struct2raw(ver)
def bump(name, value): ver = common.raw2struct(get(name), common.uint64) ver.uint += value open(name+".buildinfo", "wb").write(common.struct2raw(ver)) return common.struct2raw(ver)
def create(name, initvalue): ver = common.uint64(int(initvalue)) open(name + ".buildinfo", "wb").write(common.struct2raw(ver)) return common.struct2raw(ver)