diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-08-22 12:38:29 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-08-22 12:38:29 +0000 |
commit | 787759c0a3106ecf52b017861067ac6a669902f3 (patch) | |
tree | bc639169d79991cb95ab46c5a1138b1ba7abd5b8 /mdk-stage1 | |
parent | c5041d48b9c474ba7103636dd5f5a4861b142f52 (diff) | |
download | drakx-backup-do-not-use-787759c0a3106ecf52b017861067ac6a669902f3.tar drakx-backup-do-not-use-787759c0a3106ecf52b017861067ac6a669902f3.tar.gz drakx-backup-do-not-use-787759c0a3106ecf52b017861067ac6a669902f3.tar.bz2 drakx-backup-do-not-use-787759c0a3106ecf52b017861067ac6a669902f3.tar.xz drakx-backup-do-not-use-787759c0a3106ecf52b017861067ac6a669902f3.zip |
don't stay automatic for ask_from_entries when entries are not given
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/automatic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdk-stage1/automatic.c b/mdk-stage1/automatic.c index 486a829de..edb478ca6 100644 --- a/mdk-stage1/automatic.c +++ b/mdk-stage1/automatic.c @@ -135,7 +135,8 @@ enum return_type ask_from_entries_auto(char *msg, char ** questions, char *** an char * tmp_answers[50]; int i = 0; while (questions && *questions) { - tmp_answers[i] = get_auto_value(*questions_auto); + if (streq(tmp_answers[i] = get_auto_value(*questions_auto), "")) + return ask_from_entries(msg, questions, answers, entry_size, callback_func); log_message("AUTOMATIC: question %s answers %s because of param %s", *questions, tmp_answers[i], *questions_auto); i++; questions++; |