File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ static int ds_sds_dump_component_by_href(struct ds_sds_session *session, char* x
412
412
}
413
413
414
414
ds_sds_session_remote_resources_progress (session )(true, "WARNING: Skipping '%s' file which is referenced from datastream\n" , url );
415
+ // -2 means that remote resources were not downloaded
415
416
return -2 ;
416
417
}
417
418
@@ -444,8 +445,12 @@ int ds_sds_dump_component_ref_as(const xmlNodePtr component_ref, struct ds_sds_s
444
445
xmlFree (xlink_href );
445
446
xmlFree (cref_id );
446
447
447
- if (ret != 0 ) {
448
-
448
+ if (ret == -2 ) {
449
+ // A remote component was not dumped
450
+ // It should be ok to continue without it
451
+ free (target_filename_dirname );
452
+ return 0 ;
453
+ } else if (ret != 0 ) {
449
454
free (target_filename_dirname );
450
455
return -1 ;
451
456
}
You can’t perform that action at this time.
0 commit comments