Exemplo n.º 1
0
def create(name, initvalue):
	ver = common.uint64(int(initvalue))
	open(name+".buildinfo", "wb").write(common.struct2raw(ver))
	return common.struct2raw(ver)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
def create(name, initvalue):
    ver = common.uint64(int(initvalue))
    open(name + ".buildinfo", "wb").write(common.struct2raw(ver))
    return common.struct2raw(ver)