oops
authorJán Kupec <jkupec@suse.cz>
Tue, 13 Apr 2010 21:19:25 +0000 (23:19 +0200)
committerJán Kupec <jkupec@suse.cz>
Tue, 13 Apr 2010 21:19:25 +0000 (23:19 +0200)
src/Zypper.cc

index ff8889d..116d6e3 100644 (file)
@@ -4008,7 +4008,7 @@ void Zypper::doCommand()
       {
         for_(kit, kinds.begin(), kinds.end())
         {
-          if (kind == ResKind::package)
+          if (*kit == ResKind::package)
           {
             MIL << "Computing package update..." << endl;
             // this will do a complete pacakge update as far as possible
@@ -4018,12 +4018,12 @@ void Zypper::doCommand()
             runtimeData().solve_before_commit = false;
           }
           // update -t patch; patch
-          else if (kind == ResKind::patch)
+          else if (*kit == ResKind::patch)
           {
             sropts.skip_interactive = skip_interactive;
             sr.updatePatches();
           }
-          else if (kind == ResKind::pattern)
+          else if (*kit == ResKind::pattern)
             sr.updatePatterns();
           // should not get here (see above kind parsing code), but just in case
           else