diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-07-09 10:40:43 -0700 |
---|---|---|
committer | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-07-09 10:40:43 -0700 |
commit | 35c5bcebf36d468705761930967a97f0fcbea665 (patch) | |
tree | 2f1637c0804b93458016edec18ea96de219571c6 /ui | |
parent | 322a024f44bd6c2d665010588d74a681c9703431 (diff) | |
download | talos-petitboot-35c5bcebf36d468705761930967a97f0fcbea665.tar.gz talos-petitboot-35c5bcebf36d468705761930967a97f0fcbea665.zip |
Quiet wget
Add the --quiet option to wget for non-debug builds.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/common/loader.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ui/common/loader.c b/ui/common/loader.c index babca28..0fe62a0 100644 --- a/ui/common/loader.c +++ b/ui/common/loader.c @@ -227,7 +227,7 @@ enum wget_flags { static char *pb_load_wget(void *ctx, struct pb_url *url, enum wget_flags flags) { int result; - const char *argv[6]; + const char *argv[7]; const char **p; char *local; @@ -238,12 +238,15 @@ static char *pb_load_wget(void *ctx, struct pb_url *url, enum wget_flags flags) p = argv; *p++ = pb_system_apps.wget; /* 1 */ - *p++ = "-O"; /* 2 */ - *p++ = local; /* 3 */ - *p++ = url->full; /* 4 */ +#if !defined(DEBUG) + *p++ = "--quiet"; /* 2 */ +#endif + *p++ = "-O"; /* 3 */ + *p++ = local; /* 4 */ + *p++ = url->full; /* 5 */ if (flags & wget_no_check_certificate) - *p++ = "--no-check-certificate"; /* 5 */ - *p++ = NULL; /* 6 */ + *p++ = "--no-check-certificate"; /* 6 */ + *p++ = NULL; /* 7 */ result = pb_run_cmd(argv); |