if (!path || !*path)
continue;
- // Skip what is not included
- if (includes && !pakfire_filelist_match_patterns(path, includes)) {
- DEBUG(list->pakfire, "Skipping %s...\n", path);
-
- // We do not mark the whole tree as to skip because some matches might
- // look for file extensions, etc.
- continue;
- }
-
// Skip excludes
if (excludes && pakfire_filelist_match_patterns(path, excludes)) {
DEBUG(list->pakfire, "Skipping %s...\n", path);
continue;
}
+ // Skip what is not included
+ if (includes && !pakfire_filelist_match_patterns(path, includes)) {
+ DEBUG(list->pakfire, "Skipping %s...\n", path);
+
+ // We do not mark the whole tree as to skip because some matches might
+ // look for file extensions, etc.
+ continue;
+ }
+
DEBUG(list->pakfire, "Processing %s...\n", path);
// Reset the file entry