[yum-commits] plugins/fs-snapshot

James Antill james at osuosl.org
Tue Mar 15 13:10:46 UTC 2011


 plugins/fs-snapshot/fs-snapshot.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 5b3b839c649196f0daf734fa50b9b5f17763eac4
Author: James Antill <james at and.org>
Date:   Tue Mar 15 09:10:16 2011 -0400

    Add import yum.misc, and fix kernel_inst typos. BZ 669178.

diff --git a/plugins/fs-snapshot/fs-snapshot.py b/plugins/fs-snapshot/fs-snapshot.py
index d0a39d8..5094881 100644
--- a/plugins/fs-snapshot/fs-snapshot.py
+++ b/plugins/fs-snapshot/fs-snapshot.py
@@ -29,6 +29,7 @@ rolled-back snapshot.  You have been warned.
 
 from yum.plugins import TYPE_CORE, PluginYumExit
 from yum.constants import *
+import yum.misc
 import os
 import time
 from subprocess import Popen,PIPE
@@ -238,12 +239,12 @@ def _create_lvm_snapshot(conduit, snapshot_tag, volume):
         return 1
 
     mntpnt = volume["mntpnt"]
-    kernel_inst = True # Default to saying it might be.
+    kern_inst = True # Default to saying it might be.
     ts = conduit._base.rpmdb.readOnlyTS()
     kern_pkgtup = yum.misc.get_running_kernel_pkgtup(ts)
     del ts
     if kern_pkgtup is not None:
-        kernel_inst = conduit.getTsInfo().matchNaevr(name=kern_pkgtup[0])
+        kern_inst = conduit.getTsInfo().matchNaevr(name=kern_pkgtup[0])
     #  We only warn about this if a kernel is being installed or removed. Note
     # that this doesn't show anything if you move from "kern-foo" to "kern-bar"
     # but yum doesn't know any more than "what is running now".


More information about the Yum-commits mailing list