fix: handle IPSWs/OTAs where I can't parse the device tree properly

This commit is contained in:
blacktop
2022-07-05 21:17:36 +10:00
parent 8662ca2c0c
commit 65084dfaec
10 changed files with 133 additions and 89 deletions
+5 -2
View File
@@ -217,8 +217,11 @@ func RemoteParse(zr *zip.Reader, destPath string) error {
if err != nil {
return err
}
destPath = filepath.Join(destPath, i.GetFolder())
folder, err := i.GetFolder()
if err != nil {
log.Errorf("failed to get folder from remote zip metadata: %v", err)
}
destPath = filepath.Join(destPath, folder)
for _, f := range zr.File {
if strings.Contains(f.Name, "kernelcache.") {