int r;
// Find all static libraries
- if (pakfire_file_matches_class(file, PAKFIRE_FILE_STATIC_LIBRARY)) {
+ if (pakfire_file_matches(file, "**.a")) {
// Copy the filename
r = pakfire_string_set(path, pakfire_file_get_abspath(file));
if (r)
struct pakfire_filelist* removees = (struct pakfire_filelist*)data;
// Find all libtool archive files
- if (pakfire_file_matches_class(file, PAKFIRE_FILE_LIBTOOL_ARCHIVE))
+ if (pakfire_file_matches(file, "**.la"))
return pakfire_filelist_add(removees, file);
return 0;
const char* pattern;
int class;
} patterns[] = {
- { "**.a", PAKFIRE_FILE_STATIC_LIBRARY },
- { "**.la", PAKFIRE_FILE_LIBTOOL_ARCHIVE },
{ "**.pm", PAKFIRE_FILE_PERL },
{ NULL },
};
// The rest
PAKFIRE_FILE_PERL = (1 << 10),
- PAKFIRE_FILE_STATIC_LIBRARY = (1 << 11),
- PAKFIRE_FILE_LIBTOOL_ARCHIVE = (1 << 12),
};
int pakfire_file_is_executable(struct pakfire_file* file);