doc: Stop recording if building from source/release in plugin cache

Closes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/537

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/537>
This commit is contained in:
Thibault Saunier 2020-06-19 11:19:43 -04:00 committed by Tim-Philipp Müller
parent f88b59f49a
commit 1fbfb4291f
2 changed files with 8 additions and 3 deletions

View file

@ -20,6 +20,7 @@ import argparse
import json
import os
import sys
import re
import subprocess
import tempfile
@ -38,6 +39,7 @@ except ImportError: # python <3.3
UNSTABLE_VALUE = "unstable-values"
def dict_recursive_update(d, u):
modified = False
unstable_values = d.get(UNSTABLE_VALUE, [])
@ -49,8 +51,11 @@ def dict_recursive_update(d, u):
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

View file

@ -3588,7 +3588,7 @@
]
}
},
"package": "GStreamer git",
"package": "GStreamer",
"source": "gstreamer",
"tracers": {},
"url": "Unknown package origin"
@ -3599,7 +3599,7 @@
"filename": "gstcoretracers",
"license": "LGPL",
"other-types": {},
"package": "GStreamer git",
"package": "GStreamer",
"source": "gstreamer",
"tracers": {
"latency": {},