Closes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/537
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/537>
import json
import os
import sys
+import re
import subprocess
import tempfile
UNSTABLE_VALUE = "unstable-values"
+
def dict_recursive_update(d, u):
modified = False
unstable_values = d.get(UNSTABLE_VALUE, [])
modified |= dict_recursive_update(r, v)
d[k] = r
elif k not in unstable_values:
- d[k] = u[k]
modified = True
+ if k == "package":
+ d[k] = re.sub(" git$| source release$| prerelease$", "", v)
+ else:
+ d[k] = u[k]
return modified
]
}
},
- "package": "GStreamer git",
+ "package": "GStreamer",
"source": "gstreamer",
"tracers": {},
"url": "Unknown package origin"
"filename": "gstcoretracers",
"license": "LGPL",
"other-types": {},
- "package": "GStreamer git",
+ "package": "GStreamer",
"source": "gstreamer",
"tracers": {
"latency": {},