Tell user about guessed name-version split
authorJán Kupec <jkupec@suse.cz>
Wed, 6 Oct 2010 19:42:09 +0000 (21:42 +0200)
committerJán Kupec <jkupec@suse.cz>
Wed, 6 Oct 2010 19:42:09 +0000 (21:42 +0200)
Only in verbose mode for now.

src/PackageArgs.cc

index e45a903..f90315b 100644 (file)
@@ -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