diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-07-15 12:15:56 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-07-15 12:15:56 -0400 |
commit | c1bf7d355601eeb6799478bc8608b5a7e53314b1 (patch) | |
tree | f96d4011a85f8980cd1e230b4de8d3b96d2eea8f /func | |
parent | f7744eef540cd0c741c471f3f54e98a1ba3d1473 (diff) | |
download | func-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.py | 7 |
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()) |