summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-06-29 11:22:55 +0300
committerTimo Teras <timo.teras@iki.fi>2009-06-29 11:22:55 +0300
commit9858ffff69ce2e3df353b2c1e65a987c58f32fac (patch)
treeb9ecaccfb8f9e3f67a4ccb2ce7cb3f699f7e7f5c /src/apk.c
parent233918e518f72e469ba39206abf70250bd6fc54a (diff)
downloadapk-tools-9858ffff69ce2e3df353b2c1e65a987c58f32fac.tar.gz
apk-tools-9858ffff69ce2e3df353b2c1e65a987c58f32fac.tar.bz2
apk-tools-9858ffff69ce2e3df353b2c1e65a987c58f32fac.tar.xz
apk-tools-9858ffff69ce2e3df353b2c1e65a987c58f32fac.zip
cache: new applet (ref #49)
Administrative tool to download or delete files to/from the cache.
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/apk.c b/src/apk.c
index 25e7b07..024c11d 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -328,5 +328,8 @@ int main(int argc, char **argv)
argv++;
}
- return applet->main(ctx, argc, argv);
+ r = applet->main(ctx, argc, argv);
+ if (r == -100)
+ return usage(applet);
+ return r;
}