|author||Yann E. MORIN <email@example.com>||2017-07-16 19:22:39 +0200|
|committer||Thomas Petazzoni <firstname.lastname@example.org>||2017-07-29 22:34:41 +0200|
core/legal-info: use hash file from version sub-dir
When we have multiple versions for a package, and the licensing terms depend on the version actually selected (e.g. like Qt5), storing the hashes for those license files in the .hash file is broken: the infra will ensure that all hashes for a file do match, which would not be the case here. We fix that by first looking for a hash file in the version sub-dir first, and if that does not exist, then we use the main hash file. Drop the useless intermediate variable 'ret'. Update the documentation accordingly. Reported-by: Joshua Henderson <email@example.com> Signed-off-by: "Yann E. MORIN" <firstname.lastname@example.org> Cc: Joshua Henderson <email@example.com> Cc: Thomas Petazzoni <firstname.lastname@example.org> Cc: Luca Ceresoli <email@example.com> Signed-off-by: Thomas Petazzoni <firstname.lastname@example.org>
Diffstat (limited to 'docs')
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/manual/adding-packages-directory.txt b/docs/manual/adding-packages-directory.txt
index 804946c504..809cc97389 100644
@@ -482,7 +482,9 @@ this in a comment line above the hashes.
The hashes for license files are used to detect a license change when a
-package version is bumped.
+package version is bumped. For a package with multiple versions (like Qt5),
+create the hash file in a subdirectory +<packageversion>+ of that package
+(see also xref:patch-apply-order).
The number of spaces does not matter, so one can use spaces (or tabs) to