8,17 → 8,10 |
|
typedef struct |
{ |
list_t groups; |
list_t packages; |
char *issue; |
}collection_t; |
|
typedef struct |
{ |
list_t list; |
list_t packages; |
char *name; |
}pkg_group_t; |
|
typedef struct package |
{ |
list_t list; |
26,6 → 19,7 |
int id; |
char *name; |
char *version; |
char *group; |
char *filename; |
char *description; |
}package_t; |
35,6 → 29,7 |
list_del(&pkg->list); |
free(pkg->description); |
free(pkg->filename); |
free(pkg->group); |
free(pkg->version); |
free(pkg->name); |
free(pkg); |
43,8 → 38,9 |
collection_t* load_collection_file(const char *name); |
collection_t* load_collection_buffer(const char *buffer); |
|
int copy_list(list_t *list, list_t *src); |
|
int build_server_list(list_t *slist, const char *path); |
int build_install_list(list_t *list, collection_t *collection); |
int build_download_list(list_t *download, list_t *src); |
void remove_missing_packages(list_t *install, list_t *missed); |
char *make_cache_path(const char *path); |
53,6 → 49,8 |
void do_download(list_t *download); |
void do_install(list_t *install); |
|
extern char conbuf[256]; |
|
#ifdef __cplusplus |
} |
#endif |