summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2021-09-23 01:20:22 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2021-09-23 01:20:22 +0200
commit27d4c5157d16353fcb4713e8811c722f16875799 (patch)
treef3334e0b7480d812a1f73cbbce78cd1bd89f8890
parent4aa734919f481d12f3f321809a30c6645e185f08 (diff)
scripts/release: fix license files paths
The previous version only worked when the script was run from the root source directory Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-docs/-/merge_requests/165>
-rw-r--r--scripts/release.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/release.py b/scripts/release.py
index 1cf977c..da04241 100644
--- a/scripts/release.py
+++ b/scripts/release.py
@@ -150,7 +150,7 @@ if __name__ == "__main__":
tar = tarfile.open(outname, 'w:xz')
tar.add(files, release_name, filter=exclude_filter)
for license in ['LICENSE.BSD', 'LICENSE.CC-BY-SA-4.0', 'LICENSE.LGPL-2.1', 'LICENSE.MIT', 'LICENSE.OPL']:
- tar.add(license, os.path.join(release_name, license))
+ tar.add(os.path.join(HERE, '..', license), os.path.join(release_name, license))
os.chdir(os.path.dirname(readme))
tar.add(os.path.basename(readme), os.path.join(release_name, os.path.basename(readme)))
tar.close()