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