use Patch::categoryEnum() for comparison
authorJán Kupec <jkupec@suse.cz>
Mon, 8 Nov 2010 09:52:57 +0000 (10:52 +0100)
committerJán Kupec <jkupec@suse.cz>
Mon, 8 Nov 2010 11:06:21 +0000 (12:06 +0100)
src/update.cc

index 5033609..0e73e10 100755 (executable)
@@ -61,7 +61,7 @@ void patch_check ()
     if (it->isRelevant() && !it->isSatisfied())
     {
       gData.patches_count++;
-      if (patch->category() == "security")
+      if (patch->categoryEnum() == Patch::CAT_SECURITY)
         gData.security_patches_count++;
     }
   }