Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <zypper> master : dist-upgrade: warn about muliple repos and show hint.
  • From: Ján Kupec <jkupec@xxxxxxx>
  • Date: Fri, 20 Nov 2009 12:20:58 +0100
  • Message-id: <E1NBRol-0006i8-Ui@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 8d591f3e82f5ae4dce02f1a30bec5bb06e05c001
Author: Ján Kupec <jkupec@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages