From: Ján Kupec Date: Fri, 20 Nov 2009 11:20:58 +0000 (+0100) Subject: dist-upgrade: warn about muliple repos and show hint. X-Git-Tag: 1.2.17~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d591f3e82f5ae4dce02f1a30bec5bb06e05c001;p=platform%2Fupstream%2Fzypper.git dist-upgrade: warn about muliple repos and show hint. - this is the easy approach to fate #305553 --- 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)