diff options
author | Timo Teras <timo.teras@iki.fi> | 2008-04-22 06:04:20 +0000 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2008-04-22 06:04:20 +0000 |
commit | 384c2f1d94282ff5564a5f6c5ab9e51c975f83a6 (patch) | |
tree | 30c7225064e95641e31b8e3ce5934773678253ee /src/apk.c | |
parent | 823283edca0d8403742999917a4ff0698ad641cb (diff) | |
download | apk-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); } |