diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-09-09 16:31:11 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-09-09 16:32:31 +0300 |
commit | a5a7021658212748e9f787ce23181d3e099aba73 (patch) | |
tree | 459384995fc52f096007c3ed4d8d88ca865f998c /src/fetch.c | |
parent | 0e24207c2e4fedb9c0656ed98bc37cd37df44d91 (diff) | |
download | apk-tools-a5a7021658212748e9f787ce23181d3e099aba73.tar.gz apk-tools-a5a7021658212748e9f787ce23181d3e099aba73.tar.bz2 apk-tools-a5a7021658212748e9f787ce23181d3e099aba73.tar.xz apk-tools-a5a7021658212748e9f787ce23181d3e099aba73.zip |
applets: start using solver code
still todo:
- 'fix' is missing
- 'del -R' does not work
- 'upgrade' does not do self-upgrade first
... and a lot of testing.
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c index 72b481d..f6fbc2e 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -18,7 +18,6 @@ #include "apk_applet.h" #include "apk_database.h" -#include "apk_state.h" #include "apk_io.h" #include "apk_print.h" @@ -180,6 +179,7 @@ static int fetch_main(void *ctx, struct apk_database *db, int argc, char **argv) .result_mask = APK_DEPMASK_REQUIRE, }; +#if 0 if (fctx->flags & FETCH_RECURSIVE) { struct apk_state *state; struct apk_change *change; @@ -203,7 +203,9 @@ static int fetch_main(void *ctx, struct apk_database *db, int argc, char **argv) } apk_state_unref(state); - } else { + } else +#endif + { struct apk_package *pkg = NULL; for (j = 0; j < dep.name->pkgs->num; j++) |