summaryrefslogtreecommitdiffstats
path: root/src/py-libs/backend.py
Commit message (Collapse)AuthorAgeFilesLines
* move things around so that we can run mock.py from the build tree instead of ↵Michael E Brown2007-11-301-555/+0
| | | | having to install it.
* make error log output more useful.Michael E Brown2007-11-291-2/+2
|
* most root_log.info() calls were actually for debugging, so change them to debug.Michael E Brown2007-11-291-8/+7
|
* make sure we run yum install as root. remove unneeded state change message. ↵Michael E Brown2007-11-291-13/+10
| | | | remove redundant becomeUser() call in _copySrpmIntoChroot().
* add option to disable internal /dev setup.Michael E Brown2007-11-281-21/+28
|
* turn output back on for yum install commands. better user feedback.Michael E Brown2007-11-281-2/+2
|
* first (untested) try at adding offline mode.Michael E Brown2007-11-281-3/+8
|
* set selinux context on created /dev/ files in chroot to prevent AVC denials.Michael E Brown2007-11-261-7/+17
|
* hand-code setarch to remove dep on /usr/bin/setarchMichael E Brown2007-11-171-15/+12
|
* make setarch configurable because suse doesnt have it.Michael E Brown2007-11-171-3/+7
|
* dont need setarch for initial srpm install or rebuild of srpm. need setarch ↵Michael E Brown2007-11-171-3/+3
| | | | in chroot.
* run setarch internally based on target_archMichael E Brown2007-11-171-4/+4
|
* allow resultdir to be variable-substituted on cmdline.Michael E Brown2007-11-171-1/+1
|
* better state info.Michael E Brown2007-11-161-1/+1
|
* Merge branch 'master' of ssh://mebrown@git.fedoraproject.org/git/hosted/mockMichael E Brown2007-11-151-1/+1
|\
| * shouldnt need to set rpmlock_path macro with fixes in rpm.Michael E Brown2007-11-151-1/+0
| |
| * 'expect' wont work without /dev/ptmx.Michael E Brown2007-11-151-0/+1
| |
* | enable 'installdeps' to work with normal rpm.Michael E Brown2007-11-141-1/+1
|/
* first pass at making logging format configurable per-logfile from the config ↵Michael E Brown2007-11-121-5/+9
| | | | file.
* use built-in chroot facilities rather than running /usr/sbin/chroot.Michael E Brown2007-11-021-2/+1
|
* Fix buglet where we were substituting wrong value for cache dir.Michael E Brown2007-10-251-1/+2
|
* Merge branch 'master' of ssh://mebrown@git.fedoraproject.org/git/hosted/mockMichael E Brown2007-10-241-1/+2
|\
| * suse support -- allow override useradd cmd in config fileMichael E Brown2007-10-241-1/+2
| |
* | allow noncontiguous cache dir specifications.Michael E Brown2007-10-241-1/+5
|/
* ensure we only use gid specified. chroot operations always change uid/gid to ↵Michael E Brown2007-10-221-6/+17
| | | | gid specified. fixes 'bad owner/group' message from rpm.
* fully qualify exception name to fix exception trying to raise exception.Michael E Brown2007-10-221-1/+1
|
* remove becomeUser(0) from backend and have mock.py do it ahead of time. ↵Michael E Brown2007-10-221-3/+1
| | | | remove password from mockbuild user so you can 'mock shell' and then su - mockbuild.
* fix for FC6mock-0.8.2Michael E Brown2007-10-211-0/+7
|
* comment minor edits.mock-0.8.1Michael E Brown2007-10-211-1/+2
|
* make plugin conf options match: *_opts and *_enable. fix for not doing 'yum ↵Michael E Brown2007-10-211-1/+3
| | | | install' when --no-clean, but, rather 'yum update'. update defaults.cfg to match new options.
* update copyrights. dont put full header in every source file, just ref main ↵Michael E Brown2007-10-211-17/+4
| | | | copying.
* create plugin infrastructure. move all caching related stuff to plugins.Michael E Brown2007-10-211-185/+31
|
* enable specific dep check as it does affect build. 'yum install foo' doesnt ↵Michael E Brown2007-10-201-8/+4
| | | | fail if foo doesnt exist.
* add cleanup_on_{success,failure} options. separate out do_rebuild() function ↵Michael E Brown2007-10-201-3/+13
| | | | as it was getting a bit long. make ccache default to a bit smaller max size (4GB). Ensure we unmount fs on CTRL-C
* fix ccache to use chroot ccache instead of host ccacheMichael E Brown2007-10-191-3/+6
|
* dont double-initialize logging when building multiple srpms.Michael E Brown2007-10-191-1/+6
|
* four tweaks and a bugfix. 1) roll ccache install into same yum call as ↵Michael E Brown2007-10-191-15/+15
| | | | installdeps. 2) dont delete yum cache metadata unless it is older than 1 day. 3) remove separate depsolve pass which was only for UI cleanness. 4) dont do verbose tar pack/unpack 5) bugfix: dont untar cache twice.
* dont add hooks more than once.Michael E Brown2007-10-191-3/+4
|
* drop privs to create result dir since it is user-changeable.Michael E Brown2007-10-191-1/+7
|
* need to return output from mock in some circumstances (depsolving).Michael E Brown2007-10-191-3/+4
|
* lock buildroot before clean. lock root cache.Michael E Brown2007-10-191-8/+44
|
* re-add root cache feature.Michael E Brown2007-10-191-5/+51
|
* remove statedir as it really isnt used. move logs to resultdir to match old ↵Michael E Brown2007-10-191-10/+2
| | | | mock behaviour.
* raise specific exception for when buildroot is locked so we know not to ↵Michael E Brown2007-10-191-2/+2
| | | | orphankill. print filename in default logs.
* add 'mock install' command to yum install packages into buildroot. clean up ↵Michael E Brown2007-10-181-0/+6
| | | | help option.
* dont overwrite log files on subsequent builds. per request from mbonnet.Michael E Brown2007-10-181-1/+1
|
* completely drop privs (real and effective) when running RPM commands. add a ↵Michael E Brown2007-10-181-26/+22
| | | | bit of infrastructure to mock.util.do() to handle this. Change mock.util.do to not return output by default. No users use the output, and it can be switched on via karg.
* add lots of comments. fork() so that we can drop privs permanently before ↵Michael E Brown2007-10-181-6/+38
| | | | rpmbuild
* unneeded debug statementMichael E Brown2007-10-181-2/+0
|
* don't overwrite gid or we end up with unwriteable dirs in buildroot.Michael E Brown2007-10-181-1/+1
|