aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_src_pod.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/out_src_pod.org')
-rw-r--r--org/out_src_pod.org12
1 files changed, 9 insertions, 3 deletions
diff --git a/org/out_src_pod.org b/org/out_src_pod.org
index b4bbde3..c1fc178 100644
--- a/org/out_src_pod.org
+++ b/org/out_src_pod.org
@@ -490,12 +490,18 @@ auto pod_zipMakeReady(M,P,S)(M doc_matters, P pths_pod, S _st) {
auto fn_src_in = insert_file;
/+ ↓ keyed on the document's own language, not on hard-coded "en". The
emit loop looks each key up in the manifest's language list.
- FIX likely bug: insert_file still includes its path, and the
- line wants the filename as the pod carries it.
+ .
+ Named as the pod carries it, by filename: insert_file is a path
+ here, where every other line in digests.txt is a filename, and a
+ digest line naming a file that is not in the pod under that name
+ cannot be checked against it. The import is local, not added to
+ this template's imports, which are visible in every scope it is
+ mixed into.
+/
if (exists(fn_src_in)) { // take DIGEST write to pod file digests.txt
+ import std.path : baseName;
ST_file_stat file_ = getFileStat(fn_src_in);
- _digests[doc_matters.src.language]["ssi"] ~= file_.sha256hash.toHexString ~ "::" ~ file_.fileSize.to!string ~ " - " ~ insert_file ~ "\n";
+ _digests[doc_matters.src.language]["ssi"] ~= file_.sha256hash.toHexString ~ "::" ~ file_.fileSize.to!string ~ " - " ~ insert_file.baseName ~ "\n";
}
auto fn_src_out_pod_zip_base
= pths_pod.fn_doc_insert(