From: Ján Kupec Date: Wed, 6 Oct 2010 19:42:09 +0000 (+0200) Subject: Tell user about guessed name-version split X-Git-Tag: 1.5.0~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91db7e3a682f75247b5f27c19583957b08d207cd;p=platform%2Fupstream%2Fzypper.git Tell user about guessed name-version split Only in verbose mode for now. --- diff --git a/src/PackageArgs.cc b/src/PackageArgs.cc index e45a903..f90315b 100644 --- a/src/PackageArgs.cc +++ b/src/PackageArgs.cc @@ -210,6 +210,15 @@ void PackageArgs::argsToCaps(const zypp::ResKind & kind) parsedcap = Capability::guessPackageSpec( kind.asString() + ":" + arg, spec.modified); + if (spec.modified) + { + string msg = str::form( + _("'%s' not found in package names. Trying '%s'."), + arg.c_str(), parsedcap.asString().c_str()); + zypper.out().info(msg,Out::HIGH); + DBG << "'" << arg << "' not found, trying '" << parsedcap << "'" << endl; + } + // set the right kind (bnc #580571) // prefer those specified in args // if not in args, use the one from --type