mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
* Removed unnecessary #define
* Added comment for something I noticed while looking through code
This commit is contained in:
parent
c40c2e1137
commit
8e34023bbd
@ -60,7 +60,6 @@ alpm_list_t *alpm_list_nth(alpm_list_t *list, int n);
|
||||
alpm_list_t *alpm_list_next(alpm_list_t *list);
|
||||
alpm_list_t *alpm_list_last(alpm_list_t *list);
|
||||
void *alpm_list_getdata(const alpm_list_t *entry);
|
||||
#define alpm_list_data(type, list) (type)alpm_list_getdata((list))
|
||||
|
||||
/* misc */
|
||||
int alpm_list_count(const alpm_list_t *list);
|
||||
|
@ -138,6 +138,7 @@ alpm_list_t *_alpm_sortbydeps(alpm_list_t *targets, pmtranstype_t mode)
|
||||
for(i = newtargs; i; i = i->next) {
|
||||
pmpkg_t *p = (pmpkg_t*)i->data;
|
||||
_alpm_log(PM_LOG_DEBUG, "sorting %s", p->name);
|
||||
/* TODO this may not always work if p->data is a fd, not db */
|
||||
_alpm_db_read(p->data, INFRQ_DEPENDS, p);
|
||||
for(j = p->depends; j; j = j->next) {
|
||||
pmdepend_t dep;
|
||||
|
Loading…
Reference in New Issue
Block a user