1
0
Fork 0
forked from len0rd/rockbox

rbutil: Replace deploy with tarball script.

The old deployment script doesn't work anymore due to the change to
cmake, and since we build the distribution packages (zip / dmg /
AppImage) with cmake directly there's not much need left for the old
deployment.

Change-Id: Ide20887c5bc2e22aabbfb47374d70529609fbc3c
This commit is contained in:
Dominik Riebeling 2022-02-19 18:31:25 +01:00
parent 045f52d475
commit fa1e6cc5bf
2 changed files with 59 additions and 45 deletions

View file

@ -142,6 +142,23 @@ def get_object(repo, blob, destfile):
return True
def parse_rev(repo, hash):
'''Retrieve output of git rev-parse for a given hash.
@param repo Path to repository root.
@param hash Hash identifying the tree / commit to describe.
@return Description string.
'''
output = subprocess.Popen(
["git", "rev-parse", "--verify", "--short=10", hash],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=repo)
cmdout = output.communicate()
if len(cmdout[1]) > 0:
print("An error occured!\n")
print(cmdout[1])
return ""
return cmdout[0].decode().rstrip()
def describe_treehash(repo, treehash):
'''Retrieve output of git-describe for a given hash.
@param repo Path to repository root.