tag 177445 patch
thanks

--- anna/retriever.c.orig       2003-01-19 18:36:52.000000000 -0800
+++ anna/retriever.c    2003-01-19 18:40:08.000000000 -0800
@@ -128,13 +128,20 @@
                return 0;
 
        debconf = debconfclient_new();
-       debconf->command(debconf, "TITLE", "Choose Retriever", NULL);
-       debconf->command(debconf, "FSET", ANNA_RETRIEVER, "seen", "false",
-               NULL);
-       debconf->command(debconf, "SUBST", ANNA_RETRIEVER, "CHOICES",
-                       ret_choices, NULL);
-       debconf->command(debconf, "INPUT critical", ANNA_RETRIEVER, NULL);
-       debconf->command(debconf, "GO", NULL);
+
+       if (strchr(ret_choices, ',') == NULL) {
+               debconf->command(debconf, "SET", ANNA_RETRIEVER, ret_choices,
+                                NULL);
+       } else {
+               debconf->command(debconf, "TITLE", "Choose Retriever", NULL);
+               debconf->command(debconf, "FSET", ANNA_RETRIEVER, "seen",
+                                "false", NULL);
+               debconf->command(debconf, "SUBST", ANNA_RETRIEVER, "CHOICES",
+                                ret_choices, NULL);
+               debconf->command(debconf, "INPUT critical", ANNA_RETRIEVER,
+                                NULL);
+               debconf->command(debconf, "GO", NULL);
+       }
 
        free(ret_choices);
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to