svn commit: r184180 - head/usr.sbin/sysinstall
Ken Smith
kensmith at FreeBSD.org
Wed Oct 22 20:32:20 UTC 2008
Author: kensmith
Date: Wed Oct 22 20:32:19 2008
New Revision: 184180
URL: http://svn.freebsd.org/changeset/base/184180
Log:
Turns out its not a good idea to assume the packages that might be
selected from the "dists" are all on the current volume. Looks like
xorg won't fit on disc1 for 6.4-REL. Iterate through media volumes
for packages that wind up being selected from the dists section in
addition to the ones that get selected from the packages menu.
MFC after: 2 days
Modified:
head/usr.sbin/sysinstall/package.c
Modified: head/usr.sbin/sysinstall/package.c
==============================================================================
--- head/usr.sbin/sysinstall/package.c Wed Oct 22 20:24:52 2008 (r184179)
+++ head/usr.sbin/sysinstall/package.c Wed Oct 22 20:32:19 2008 (r184180)
@@ -55,7 +55,7 @@ int
package_add(char *name)
{
PkgNodePtr tmp;
- int i;
+ int i, current, low, high;
if (!mediaVerify())
return DITEM_FAILURE;
@@ -68,9 +68,16 @@ package_add(char *name)
return i;
tmp = index_search(&Top, name, &tmp);
- if (tmp)
- return index_extract(mediaDevice, &Top, tmp, FALSE, 0);
- else {
+ if (tmp) {
+ if (have_volumes) {
+ low = low_volume;
+ high = high_volume;
+ } else
+ low = high = 0;
+ for (current = low; current <= high; current++)
+ i = index_extract(mediaDevice, &Top, tmp, FALSE, current);
+ return i;
+ } else {
msgConfirm("Sorry, package %s was not found in the INDEX.", name);
return DITEM_FAILURE;
}
More information about the svn-src-head
mailing list