[yum-git] plugins/fedorakmod
James Antill
james at linux.duke.edu
Mon Feb 18 15:49:47 UTC 2008
plugins/fedorakmod/fedorakmod.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4378f384b4922488499e0a2c66737c254325532f
Author: James Antill <james at and.org>
Date: Mon Feb 18 10:49:44 2008 -0500
Fix two == None bugs
diff --git a/plugins/fedorakmod/fedorakmod.py b/plugins/fedorakmod/fedorakmod.py
index b5a3867..0478aa8 100644
--- a/plugins/fedorakmod/fedorakmod.py
+++ b/plugins/fedorakmod/fedorakmod.py
@@ -150,7 +150,7 @@ def resolveVersions(packageList):
if sameName and packages.comparePoEVR(sameName, po) < 0:
dict[kernel].remove(sameName)
dict[kernel].append(po)
- elif sameName == None:
+ elif sameName is None:
dict[kernel].append(po)
return dict
@@ -188,7 +188,7 @@ def pinKernels(c, newKernels, modules):
kernel until matching modules are available."""
runningKernel = getRunningKernel()
- if runningKernel == None:
+ if runningKernel is None:
c.error(2, "Could not parsing running kernel version.")
return
More information about the Yum-cvs-commits
mailing list