aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-09 06:24:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-09 06:25:27 +0000
commitfa47cadb98c4fd96e315acb3e96bb2487358f593 (patch)
tree566a133fbd7d35bb7db9001a5e4c88f84f660412 /src/update.c
parentd931f9fe5c40144ea9488ce5970f16f2de306152 (diff)
downloadaports-fa47cadb98c4fd96e315acb3e96bb2487358f593.tar.bz2
aports-fa47cadb98c4fd96e315acb3e96bb2487358f593.tar.xz
db: removed apk_repository_update_all() as its no longer needed
We use APK_UPDATE_CACHE apk_flag instead.
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index aa7bd25eb4..abf4021deb 100644
--- a/src/update.c
+++ b/src/update.c
@@ -19,10 +19,9 @@ static int update_main(void *ctx, int argc, char **argv)
{
struct apk_database db;
+ apk_flags |= APK_UPDATE_CACHE;
if (apk_db_open(&db, apk_root, APK_OPENF_READ) < 0)
return -1;
-
- apk_repository_update_all(&db);
apk_db_close(&db);
return 0;