summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-04-22 06:04:20 +0000
committerTimo Teras <timo.teras@iki.fi>2008-04-22 06:04:20 +0000
commit384c2f1d94282ff5564a5f6c5ab9e51c975f83a6 (patch)
tree30c7225064e95641e31b8e3ce5934773678253ee /src/apk.c
parent823283edca0d8403742999917a4ff0698ad641cb (diff)
downloadapk-tools-384c2f1d94282ff5564a5f6c5ab9e51c975f83a6.tar.gz
apk-tools-384c2f1d94282ff5564a5f6c5ab9e51c975f83a6.tar.bz2
apk-tools-384c2f1d94282ff5564a5f6c5ab9e51c975f83a6.tar.xz
apk-tools-384c2f1d94282ff5564a5f6c5ab9e51c975f83a6.zip
Preserve uid and gid. Quiet flag to print dots on progress.
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index e59074a..588112b 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -21,6 +21,7 @@
const char *apk_root = "/";
const char *apk_repository = NULL;
+int apk_quiet = 0;
void apk_log(const char *prefix, const char *format, ...)
{
@@ -69,6 +70,7 @@ int main(int argc, char **argv)
static struct option generic_options[] = {
{"root", required_argument, NULL, 'Q' },
{"repository", required_argument, NULL, 'X' },
+ {"quiet", no_argument, NULL, 'q' },
{0, 0, 0, 0},
};
struct apk_applet *applet = NULL;
@@ -95,6 +97,9 @@ int main(int argc, char **argv)
case 'X':
apk_repository = optarg;
break;
+ case 'q':
+ apk_quiet = 1;
+ break;
default:
return usage();
}