summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-02 03:17:32 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-02 03:17:32 +0000
commit29963c28395de6279b585fc4206a9e7a13523da1 (patch)
tree142c262b9c129fb3267345917be723657ead814d
parentb06b2542f824a33d1d62d185eb41810a094225b5 (diff)
downloaddrakx-29963c28395de6279b585fc4206a9e7a13523da1.tar
drakx-29963c28395de6279b585fc4206a9e7a13523da1.tar.gz
drakx-29963c28395de6279b585fc4206a9e7a13523da1.tar.bz2
drakx-29963c28395de6279b585fc4206a9e7a13523da1.tar.xz
drakx-29963c28395de6279b585fc4206a9e7a13523da1.zip
fix cancel in disk install
-rw-r--r--mdk-stage1/disk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c
index 716b38f7e..19081610a 100644
--- a/mdk-stage1/disk.c
+++ b/mdk-stage1/disk.c
@@ -292,8 +292,8 @@ enum return_type disk_prepare(void)
if (count == 1) {
results = try_with_device(*medias);
- if (results == RETURN_OK)
- return RETURN_OK;
+ if (results != RETURN_ERROR)
+ return results;
i = ask_insmod(SCSI_ADAPTERS);
if (i == RETURN_BACK)
return RETURN_BACK;
@@ -308,8 +308,8 @@ enum return_type disk_prepare(void)
return results;
results = try_with_device(choice);
- if (results == RETURN_OK)
- return RETURN_OK;
+ if (results != RETURN_ERROR)
+ return results;
i = ask_insmod(SCSI_ADAPTERS);
if (i == RETURN_BACK)
return RETURN_BACK;