summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/index.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-28 03:27:26 +0000
committerjkh <jkh@FreeBSD.org>1996-04-28 03:27:26 +0000
commitbef4595dff61c4da60fe242b7e3e6837f7652fe8 (patch)
tree3ea5bbe8ec61c1ac0d4dc65e282de55573fb8a67 /release/sysinstall/index.c
parent87634a8e4d491f936c98dc09903764bef2a2cc76 (diff)
downloadFreeBSD-src-bef4595dff61c4da60fe242b7e3e6837f7652fe8.zip
FreeBSD-src-bef4595dff61c4da60fe242b7e3e6837f7652fe8.tar.gz
Fix an ancient index list bug.
Make FTP re-initializion work. Fix fix fix.
Diffstat (limited to 'release/sysinstall/index.c')
-rw-r--r--release/sysinstall/index.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/release/sysinstall/index.c b/release/sysinstall/index.c
index 754740f..bea8857 100644
--- a/release/sysinstall/index.c
+++ b/release/sysinstall/index.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: index.c,v 1.23 1996/04/13 13:31:39 jkh Exp $
+ * $Id: index.c,v 1.24 1996/04/23 01:29:21 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -57,9 +57,10 @@ _strdup(char *ptr)
static char *descrs[] = {
"Package Selection", "To mark a package or select a category, move to it and press SPACE.\n"
- "To unmark a package, press SPACE again. To go to a previous menu, select the Cancel\n"
- "button. To search for a package by name, press ESC. To finally extract packages, you\n"
- "should Cancel all the way out of any submenus and this top menu.",
+ "To unmark a package, press SPACE again. To go to a previous menu,\n"
+ "select the Cancel button. To search for a package by name, press ESC.\n"
+ "To finally extract packages, you should Cancel all the way out of any\n"
+ "submenus and then this top menu.",
"Package Targets", "These are the packages you've selected for extraction.\n\n"
"If you're sure of these choices, select OK.\n"
"If not, select Cancel to go back to the package selection menu.\n",
@@ -528,12 +529,12 @@ index_extract_one(Device *dev, PkgNodePtr top, PkgNodePtr who, Boolean depended)
strcpy(t, id->deps);
cp = t;
- while (cp && status == DITEM_SUCCESS) {
+ while (cp && DITEM_STATUS(status) == DITEM_SUCCESS) {
if ((cp2 = index(cp, ' ')) != NULL)
*cp2 = '\0';
if ((tmp2 = index_search(top, cp, NULL)) != NULL) {
status = index_extract_one(dev, top, tmp2, TRUE);
- if (status != DITEM_SUCCESS) {
+ if (DITEM_STATUS(status) != DITEM_SUCCESS) {
if (variable_get(VAR_NO_CONFIRM))
msgNotify("Loading of dependant package %s failed", cp);
else
@@ -547,7 +548,7 @@ index_extract_one(Device *dev, PkgNodePtr top, PkgNodePtr who, Boolean depended)
}
}
/* Done with the deps? Load the real m'coy */
- if (status == DITEM_SUCCESS)
+ if (DITEM_STATUS(status) == DITEM_SUCCESS)
status = package_extract(dev, who->name, depended);
return status;
}
OpenPOWER on IntegriCloud