-
Notifications
You must be signed in to change notification settings - Fork 87
Conversation
Just need to account for the cache during parsing and this will be done! |
I was sent a build from this branch and I had a go using it. I pointed it at a directory where I have top 50 retail addons from curseforge (listed as 69 addons due to altoholic containing other addons), installed via catalog 10 days ago. There are also addons in the folders for the other game flavors but those can be ignored. I then hit "Update All" and ajour panicked and shut down. Attached is zipped version of ajour's appdata and a screenshot showing 14 temp files left behind afterwards. My guess is that the panic was caused by altoholic which has matched addons that are subsets of another matched addon causing problems when altoholic and its sub-addons are trying to update the same files. I don't know if the problem is new to this branch. 08:43:16.230 [panic][ERROR] thread 'main' panicked at 'called Edit: note in screenshot that it has downloaded both |
Looks like its DataStore_Reputations ( It seems like that fingerprint matches classic version |
Yeah, so what appears to be happening is that due to how FUBAR Altoholic is, it's trying to download the main Altoholic addon, on top of the individual addon for each Datastore. Because the main Altoholic addon contains each folder, there is a high chance that there will be a collision while it's unpacking one of the Datastore folders, with the unpacking on that same Datastore folder from the individual addon. At the end of our unpack function, we parse all the unpacked folders into let addon_folders = toc_files.iter().filter_map(parse_toc_path).collect(); When it was doing this for the individual addon for //TODO: Can this crash? What do we do in that case.
folders.get(0).map(|f| f.id.clone()).unwrap() Because the were no successfully parsed AddonFolder in the vec. I've added |
4619b7f
to
0ffe988
Compare
No remarks. Looks good, and tests was good. |
@casperstorm just double check my changes to config loading initially and I think this is good to go |
Resolves adding Tukui and WowI reliably to catalog
Proposed Changes
Checklist
CHANGELOG.md
if knowledge of this change could be valuable to users