diff options
author | Michael E Brown <mebrown@michaels-house.net> | 2007-12-12 16:05:42 -0600 |
---|---|---|
committer | Michael E Brown <mebrown@michaels-house.net> | 2007-12-12 16:05:42 -0600 |
commit | d16aaf3b7736e4a23e82bc455c4a09d05259a1b7 (patch) | |
tree | 044705a7e840c31abd76a4fca24b52c9b4607737 /py/mock.py | |
parent | f50af0f1c32a4162f48580609806e83c6c86d644 (diff) | |
parent | 4761a4a794b4e7087ce9f7eeb816ea19c32b06ac (diff) | |
download | mock-d16aaf3b7736e4a23e82bc455c4a09d05259a1b7.tar.gz mock-d16aaf3b7736e4a23e82bc455c4a09d05259a1b7.tar.xz mock-d16aaf3b7736e4a23e82bc455c4a09d05259a1b7.zip |
Merge branch 'master' of ssh://mebrown@git.fedorahosted.org/git/mock
* 'master' of ssh://mebrown@git.fedorahosted.org/git/mock:
fixup trailing whitespace.
dont place specs into release tarball. This allows us to rev the RPM without having to have different tarball bits.
remove redundant daemontest in src
auto generate AUTHORS file from git.
remove another dead libtool reference.
remove generated autotools files from source repository. use autogen.sh to create them when compiling from git.
remove generated autotools files from source repository. use autogen.sh to create them when compiling from git.
remove dead code from autoconf files since we no longer compile anything.
Don't provide backwards compat option for update.
Add --update call, to update existing buildroot.
Diffstat (limited to 'py/mock.py')
-rwxr-xr-x | py/mock.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |