summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-07-15 12:15:56 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-07-15 12:15:56 -0400
commitc1bf7d355601eeb6799478bc8608b5a7e53314b1 (patch)
treef96d4011a85f8980cd1e230b4de8d3b96d2eea8f /func
parentf7744eef540cd0c741c471f3f54e98a1ba3d1473 (diff)
downloadfunc-c1bf7d355601eeb6799478bc8608b5a7e53314b1.tar.gz
func-c1bf7d355601eeb6799478bc8608b5a7e53314b1.tar.xz
func-c1bf7d355601eeb6799478bc8608b5a7e53314b1.zip
Added patch to be able to update just a specific package
Diffstat (limited to 'func')
-rw-r--r--func/minion/modules/yumcmd.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/func/minion/modules/yumcmd.py b/func/minion/modules/yumcmd.py
index f952372..f06c504 100644
--- a/func/minion/modules/yumcmd.py
+++ b/func/minion/modules/yumcmd.py
@@ -24,14 +24,17 @@ class Yum(func_module.FuncModule):
api_version = "0.0.1"
description = "Package updates through yum."
- def update(self):
+ def update(self, pkg=None):
# XXX support updating specific rpms
ayum = yum.YumBase()
ayum.doGenericSetup()
ayum.doRepoSetup()
try:
ayum.doLock()
- ayum.update()
+ if pkg != None:
+ ayum.update(name=pkg)
+ else:
+ ayum.update()
ayum.buildTransaction()
ayum.processTransaction(
callback=DummyCallback())