mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
testdb : fix wrong usage of checkdeps.
During last rebase where the checkdeps prototype changed, I messed up the arguments order (remove list, then upgrade list). That made testdb totally useless. Also remove the newline that was manually added by the log callback. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
741fa31603
commit
b4a84e4f1d
@ -54,7 +54,6 @@ void output_cb(pmloglevel_t level, char *fmt, va_list args)
|
|||||||
default: return;
|
default: return;
|
||||||
}
|
}
|
||||||
vprintf(fmt, args);
|
vprintf(fmt, args);
|
||||||
printf("\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,7 +137,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* check dependencies */
|
/* check dependencies */
|
||||||
alpm_list_t *data;
|
alpm_list_t *data;
|
||||||
data = alpm_checkdeps(db, 0, alpm_db_getpkgcache(db), NULL);
|
data = alpm_checkdeps(db, 0, NULL, alpm_db_getpkgcache(db));
|
||||||
for(i = data; i; i = alpm_list_next(i)) {
|
for(i = data; i; i = alpm_list_next(i)) {
|
||||||
pmdepmissing_t *miss = alpm_list_getdata(i);
|
pmdepmissing_t *miss = alpm_list_getdata(i);
|
||||||
pmdepend_t *dep = alpm_miss_get_dep(miss);
|
pmdepend_t *dep = alpm_miss_get_dep(miss);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user