diff options
Diffstat (limited to 'tex/context/base/publ-ini.lua')
-rw-r--r-- | tex/context/base/publ-ini.lua | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tex/context/base/publ-ini.lua b/tex/context/base/publ-ini.lua index b7f164610..a200445f4 100644 --- a/tex/context/base/publ-ini.lua +++ b/tex/context/base/publ-ini.lua @@ -719,13 +719,28 @@ do -- of the source and or style). function publications.enhancers.suffixes(dataset) - local used = usedentries[dataset.name] + + if not dataset then + -- bad news + return + else + report("analyzing previous publication run for %a",dataset.name) + end + local used = usedentries[dataset.name] + if not used then + -- probably a first run + return + end local luadata = dataset.luadata local details = dataset.details local ordered = dataset.ordered local caster = casters.author local getter = publications.directget local shorts = { } + if not luadata or not detailr or not ordered then + return + -- also bad news + end for i=1,#ordered do local entry = ordered[i] if entry then |