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 json
import os import os
import sys import sys
import re
import subprocess import subprocess
import tempfile import tempfile
@ -38,6 +39,7 @@ except ImportError: # python <3.3
UNSTABLE_VALUE = "unstable-values" UNSTABLE_VALUE = "unstable-values"
def dict_recursive_update(d, u): def dict_recursive_update(d, u):
modified = False modified = False
unstable_values = d.get(UNSTABLE_VALUE, []) unstable_values = d.get(UNSTABLE_VALUE, [])
@ -49,8 +51,11 @@ def dict_recursive_update(d, u):
modified |= dict_recursive_update(r, v) modified |= dict_recursive_update(r, v)
d[k] = r d[k] = r
elif k not in unstable_values: elif k not in unstable_values:
d[k] = u[k]
modified = True modified = True
if k == "package":
d[k] = re.sub(" git$| source release$| prerelease$", "", v)
else:
d[k] = u[k]
return modified return modified

View file

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