Drop commas in rpi-imager.json

This commit is contained in:
Ben Wilson
2022-08-12 13:39:43 +01:00
parent 60f22b97f2
commit 7c2b5a6d44

View File

@@ -162,6 +162,7 @@ def generate_manifest(data):
try:
unxz = subprocess.check_output("unxz --verbose --list {}/{}.xz | grep 'Uncompressed'".format(imagedir, filename), shell=True)
extract_size = re.findall(r'\((.*?) B\)', str(unxz))[0]
extract_size = extract_size.replace(',','')
except subprocess.CalledProcessError as e:
#print("command '{}' return with error (code {})".format(e.cmd, e.returncode))
extract_size = "0"