// Fetch path
const char* path = archive_entry_pathname(entry);
+ // Add entry to filelist (if requested)
+ if (data->filelist) {
+ r = pakfire_file_create_from_archive_entry(&file, pakfire, entry);
+ if (r)
+ goto ERROR;
+
+ // Append the file to the list
+ r = pakfire_filelist_append(data->filelist, file);
+ if (r)
+ goto ERROR;
+ }
+
// Prepend the prefix
if (*data->prefix) {
// Compose file path
}
}
- // Add entry to filelist (if requested)
- if (data->filelist) {
- r = pakfire_file_create_from_archive_entry(&file, pakfire, entry);
- if (r)
- goto ERROR;
-
- // Append the file to the list
- r = pakfire_filelist_append(data->filelist, file);
- if (r)
- goto ERROR;
- }
-
// Create file & extract payload
if (data->writer) {
// Fetch path again since we changed it