Commit efc581b
committed
fix(update-flathub-repo): Improve Flathub metainfo changelog insertion
Set CHANGELOG from the release body and robustly insert it into the generated .metainfo.xml. Escape XML-sensitive characters (&, <, >), disable patsub_replacement to treat replacement text literally, and read the full metainfo file while preserving newlines. Fail with a clear error if the expected <!-- changelog --> placeholder is missing. Replace the placeholder using Bash string substitution and write the updated contents back (replacing the previous sed-based approach) to avoid issues with sed and multiline input.1 parent 639b6ba commit efc581b
1 file changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
| 136 | + | |
134 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
135 | 151 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
139 | 157 | | |
140 | | - | |
141 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
142 | 161 | | |
143 | 162 | | |
144 | 163 | | |
| |||
0 commit comments