Quiet wget
authorGeoff Levand <geoffrey.levand@am.sony.com>
Thu, 9 Jul 2009 17:40:43 +0000 (10:40 -0700)
committerGeoff Levand <geoffrey.levand@am.sony.com>
Thu, 9 Jul 2009 17:40:43 +0000 (10:40 -0700)
Add the --quiet option to wget for non-debug builds.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
ui/common/loader.c

index babca28a34950d0cd73fc88c8fa2f0be328f2b51..0fe62a0a6cfc715d403dda5bf7890d6448a7757c 100644 (file)
@@ -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);