From 21729f0ce49ce368aa40eafe42faf0df4fa89311 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 31 Jan 2007 08:10:01 +0000 Subject: * Forgot the int->enum header checkin * Removed the dep-sorting TODO item - switch the sorting to a topological sort later (I'll let Dan do the CS stuff, heh) --- TODO.aaron | 6 ------ lib/libalpm/deps.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/TODO.aaron b/TODO.aaron index ca7156f8..9b815a78 100644 --- a/TODO.aaron +++ b/TODO.aaron @@ -43,12 +43,6 @@ **** BUGS **** * Removal of conflicts on -A and -U (INCOMPLETE) -* ordering of packages to be installed based on dependencies - i.e. pkga depends=(pkgb pkgc), pkgb depends=(pkgc) - pacman -S pkga pkgb pkgc - > a depends on b and c, move them: pkgb pkgc pkga - > b depends on c, move it: pkgc pkgb pkga - > pacman -S pkgc pkgb pkga * gensync: get all info from packages instead of PKGBUILDs for now, we only need to check the PKGBUILD in case of a 'force' option diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h index f69e1d5f..f0771f68 100644 --- a/lib/libalpm/deps.h +++ b/lib/libalpm/deps.h @@ -46,7 +46,7 @@ pmdepmissing_t *_alpm_depmiss_new(const char *target, pmdeptype_t type, pmdepmod_t depmod, const char *depname, const char *depversion); int _alpm_depmiss_isin(pmdepmissing_t *needle, alpm_list_t *haystack); -alpm_list_t *_alpm_sortbydeps(alpm_list_t *targets, int mode); +alpm_list_t *_alpm_sortbydeps(alpm_list_t *targets, pmtranstype_t mode); alpm_list_t *_alpm_checkdeps(pmtrans_t *trans, pmdb_t *db, pmtranstype_t op, alpm_list_t *packages); int _alpm_splitdep(char *depstr, pmdepend_t *depend); -- cgit v1.2.3-70-g09d2