summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/mock.py b/py/mock.py
index 80e7fbf..8b2a71f 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -83,6 +83,9 @@ def command_parse(config_opts):
parser.add_option("--install", action="store_const", const="install",
dest="mode",
help="install packages using yum")
+ parser.add_option("--update", action="store_const", const="update",
+ dest="mode",
+ help="update installed packages using yum")
parser.add_option("--orphanskill", action="store_const", const="orphanskill",
dest="mode",
help="Kill all processes using specified buildroot.")
@@ -512,6 +515,9 @@ def main(ret):
chroot.tryLockBuildRoot()
chroot.yumInstall(*args)
+
+ elif options.mode == 'update':
+ chroot.yumUpdate()
elif options.mode == 'rebuild':
do_rebuild(config_opts, chroot, args)