Disable UI init if processing options in batch mode.
authorshort <>
Mon, 22 Sep 2003 12:24:51 +0000 (12:24 +0000)
committershort <>
Mon, 22 Sep 2003 12:24:51 +0000 (12:24 +0000)
src/install/acquire/main.c

index 3eefed7..1f5e17b 100644 (file)
@@ -276,7 +276,7 @@ guint handler_id;
                        && ! optarg_microsoft_com);
 
        /* Initialize UI here to catch all GLog errors below. */
-       if (1
+       if (is_interactive
                        && (no_gnome || !ui_gnome_init())
                        && !ui_line_init())
                g_error(_("No UI interface could be initialized"));