From 080fa825ddf932cf95ef38ffa2107e3a99d49610 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 7 Jul 2009 11:12:24 +0200 Subject: implement --update-cache option This will update the repository cache upon db_open. --- src/apk.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/apk.c') diff --git a/src/apk.c b/src/apk.c index 6e21072..93be9df 100644 --- a/src/apk.c +++ b/src/apk.c @@ -41,6 +41,7 @@ static struct apk_option generic_options[] = { { 'v', "verbose", "Print more information" }, { 'V', "version", "Print program version and exit" }, { 'f', "force", "Do what was asked even if it looks dangerous" }, + { 'U', "update-cache", "Update the repository cache" }, { 0x101, "progress", "Show a progress bar" }, { 0x102, "clean-protected", "Do not create .apk-new files to " "configuration dirs" }, @@ -324,6 +325,9 @@ int main(int argc, char **argv) case 'f': apk_flags |= APK_FORCE; break; + case 'U': + apk_flags |= APK_UPDATE_CACHE; + break; case 0x101: apk_flags |= APK_PROGRESS; break; -- cgit v1.2.3-70-g09d2