ref: refs/heads/master
commit 8d591f3e82f5ae4dce02f1a30bec5bb06e05c001
Author: Ján Kupec
Date: Fri Nov 20 12:20:58 2009 +0100
dist-upgrade: warn about muliple repos and show hint.
- this is the easy approach to fate #305553
---
src/Zypper.cc | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/Zypper.cc b/src/Zypper.cc
index 9504025..ea0292b 100644
--- a/src/Zypper.cc
+++ b/src/Zypper.cc
@@ -3829,6 +3829,15 @@ void Zypper::doCommand()
}
initRepoManager();
+
+ if (!copts.count("repo") && !copts.count("from")
+ && repoManager().knownRepositories().size() > 1)
+ this->out().warning(str::form(_(
+ "You are about to do a distribution upgrade with all enabled"
+ " repositories. Make sure these repositories are compatible before you"
+ " continue. See '%s' for more information about this command."),
+ "man zypper"));
+
init_target(*this);
init_repos(*this);
if (exitCode() != ZYPPER_EXIT_OK)
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org