|
|
|
|
@ -38,7 +38,10 @@ void yon_repo_fill_archs(repo_struct *repo){
|
|
|
|
|
int size;
|
|
|
|
|
config_str folders = yon_dir_get_contents(repo->path,&size);
|
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
|
if (yon_file_is_directory(folders[i])&&(strcmp(folders[i],".")&&strcmp(folders[i],".."))){
|
|
|
|
|
char *full_path = yon_char_unite(repo->path,"/",folders[i],NULL);
|
|
|
|
|
if (yon_file_is_directory(full_path)&&
|
|
|
|
|
(strcmp(folders[i],".")&&
|
|
|
|
|
strcmp(folders[i],".."))){
|
|
|
|
|
arch_struct *arch = yon_arch_struct_new();
|
|
|
|
|
arch->name = yon_char_new(folders[i]);
|
|
|
|
|
arch->path = yon_char_unite(repo->path,"/",arch->name,NULL);
|
|
|
|
|
@ -47,6 +50,7 @@ void yon_repo_fill_archs(repo_struct *repo){
|
|
|
|
|
yon_arch_fill_packages(arch);
|
|
|
|
|
g_hash_table_insert(repo->archs,arch->name,arch);
|
|
|
|
|
}
|
|
|
|
|
free(full_path);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|