diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-07 11:12:24 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-09 06:08:44 +0000 |
commit | 080fa825ddf932cf95ef38ffa2107e3a99d49610 (patch) | |
tree | 19692ca0e69738437c4b02feb9ee97ec5a77a202 /src/apk.c | |
parent | f1125dfcde748300846f9fba07f29791ec980c1a (diff) | |
download | apk-tools-080fa825ddf932cf95ef38ffa2107e3a99d49610.tar.gz apk-tools-080fa825ddf932cf95ef38ffa2107e3a99d49610.tar.bz2 apk-tools-080fa825ddf932cf95ef38ffa2107e3a99d49610.tar.xz apk-tools-080fa825ddf932cf95ef38ffa2107e3a99d49610.zip |
implement --update-cache option
This will update the repository cache upon db_open.
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |