Commit 347c500
committed
version_sources: unique temp dir per html_listing call
shvr_versions_from_html_listing wrote its temp files to
${TMPDIR}/shvr_html_listing.$$, but $$ is the main shell's PID — identical
in every nested subshell call. shvr_update_bash is the only updater that
nests the helper (it streams the baseline listing while calling the helper
again per baseline to scrape that baseline's -patches/ dir). The inner call
clobbered the outer's temp files, so patch discovery returned empty and every
bash baseline composed to "<baseline>.0". Since that is below the committed
patch level, the series-filter merge kept the old version — `update` reported
"no changes" and bash was frozen (stuck at 5.3.9 with 5.3.15 available).
Give each call its own `mktemp -d` directory so nested calls can't collide.1 parent 95d8592 commit 347c500
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
0 commit comments