Really turn off srcs for upgrades.

This commit is contained in:
Jordan K. Hubbard 2000-11-14 21:21:53 +00:00
parent f9c70d7647
commit cf47e60dd8
2 changed files with 2 additions and 0 deletions

View File

@ -250,6 +250,7 @@ installUpgrade(dialogMenuItem *self)
/* Don't allow sources to be upgraded unless if we have src already */
if (directory_exists("/usr/src/") && (Dists & DIST_SRC)) {
Dists &= ~DIST_SRC;
SrcDists = 0;
msgConfirm("Warning: /usr/src exists and sources were selected as upgrade\n"
"targets. Unfortunately, this is not the way to upgrade your\n"
"sources - please use CTM or CVSup or some other method which\n"

View File

@ -250,6 +250,7 @@ installUpgrade(dialogMenuItem *self)
/* Don't allow sources to be upgraded unless if we have src already */
if (directory_exists("/usr/src/") && (Dists & DIST_SRC)) {
Dists &= ~DIST_SRC;
SrcDists = 0;
msgConfirm("Warning: /usr/src exists and sources were selected as upgrade\n"
"targets. Unfortunately, this is not the way to upgrade your\n"
"sources - please use CTM or CVSup or some other method which\n"