summaryrefslogtreecommitdiffstats
path: root/py/mock/backend.py
Commit message (Collapse)AuthorAgeFilesLines
* handle distro differences for /dev/pts in chrootmock-1.0.2Clark Williams2009-12-231-4/+13
| | | | | | | | EPEL distros are older and have different behavior of the /dev/pts filesystem than newer kernels in Fedora. Deal with that when setting up devices. Signed-off-by: Clark Williams <williams@redhat.com>
* reworked devpts handling {BZ 510183}Clark Williams2009-11-231-2/+4
| | | | | | | | | | changed setup of devpts inside chroot so that /dev/ptmx is a symlink to /dev/pty/ptmx and that it's mounted with all read/write permissions so that pty's are usable inside the chroot. Also called devSetup when running interactive shell, so that shell chroot matches build chroot environment. Signed-off-by: Clark Williams <williams@redhat.com>
* conditionalize import of uuid package and avoid dependent code ifClark Williams2009-11-091-9/+15
| | | | import fails (as it will on RHEL5)
* Don't automatically update the chroot in a --no-clean scenarioJesse Keating2009-08-111-3/+2
| | | | | | This causes largely unnecessary yum runs and delays builds. The new behavior would just skip the yum call all together, unless the chroot was cleaned, in which case the setup command is called.
* fixed stupid typo in last updateClark Williams2009-07-081-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* reworked /dev/pts mount command to lookup 'tty' group id andClark Williams2009-07-081-1/+6
| | | | | | | to use the 'newinstance' mount option if the kernel version is >= 2.6.29 Signed-off-by: Clark Williams <williams@redhat.com>
* Add directory and infrastructure that will allow dbus to start in chroot.Clark Williams2009-07-081-0/+11
| | | | | | BZ# 460574 Signed-off-by: Clark Williams <williams@redhat.com>
* Patch from Jakub Jelinek (jakub@redhat.com) to fix incorrect mode andClark Williams2009-07-081-1/+1
| | | | | | group for /dev/pts mounted in chroot (BZ# 510183) Signed-off-by: Clark Williams <williams@redhat.com>
* Be able to resolve hostnameLubomir Rintel2009-03-271-6/+12
| | | | | Copy /etc/hosts from host when resolver configuration is being copied, otherwise add hostname as a loopback alias.
* Copy the hosts tzdata (/etc/localtime) into the chrootJesse Keating2009-02-051-0/+7
|
* buildsrpm: some additional sanity checking, and removing an unnecessary globMike Bonnet2009-02-011-6/+6
|
* HOME environment variable is now set globally to match chroot homedirMike Bonnet2009-02-011-1/+0
|
* Merge branch 'master' into clarkClark Williams2009-02-011-0/+59
|\
| * Merge branch 'buildsrpm'Michael E Brown2009-01-231-0/+59
| |\ | | | | | | | | | | | | | | | | | | | | | * buildsrpm: unlink->rmdir another srpm -> spec change in buildsrpm. add state for building srpm. cant use srpm var, use spec file instead. its ofr info only. initial work to copy spec/sources and build srpm.
| | * unlink->rmdirMichael E Brown2009-01-081-1/+1
| | |
| | * another srpm -> spec change in buildsrpm. add state for building srpm.Michael E Brown2009-01-081-0/+1
| | |
| | * initial work to copy spec/sources and build srpm.Michael E Brown2009-01-081-0/+58
| | |
* | | set HOME environment variable to be the chroot homeClark Williams2009-02-011-2/+0
| | |
* | | Merge branch 'master' of ↵Clark Williams2009-01-081-2/+3
|\| | | | | | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| * | add new exception for result dir not being accessible and print nice ↵Michael E Brown2008-11-181-2/+3
| |/ | | | | | | friendly error message.
* / added version variable; added Mock Version banner to all logsClark Williams2008-12-191-0/+2
|/
* create BUILDROOT dir required by new rpmbuildClark Williams2008-08-291-1/+1
|
* add support for shmMichael E Brown2008-03-091-7/+12
|
* modify rootcache logic to rebuild cache if config files have newer timestampClark Williams2008-02-291-0/+1
|
* Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-221-21/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of /var/ftp/pub/Applications/git/mock: get rid of one level of shell indirection where possible. revert accidental comment-out of test cleanup that I was using to debug tar problem. add back in dropped '.' to tar cvf command that is causing root cache creation to fail. Add debug logging for running commands. convert mock.util.do() to use subprocess.Popen() rather than raw fork/exec.\nThis cleans up the code considerably. Also, start reducing the places where we use a shell in the subcommand. better unit test error message. mount everything when running chroot command. updated change log added compat symlinks version bump update manpage with new site-defaults ref. the great config file rename. some manpage clarifications and arrangements. clarify info message to make it obvious that root cache is being unpacked. cleanup trailing whitespace. cleanup trailing whitespace. add ability to conditionally enable tmpfs based on minimum ram availability. add initfailed hook so tmpfs plugin can properly unmount tmpfs on failure. make sure we call postbuild hooks even on failure.
| * get rid of one level of shell indirection where possible.Michael E Brown2008-01-201-9/+14
| |
| * convert mock.util.do() to use subprocess.Popen() rather than raw ↵Michael E Brown2008-01-201-10/+9
| | | | | | | | fork/exec.\nThis cleans up the code considerably. Also, start reducing the places where we use a shell in the subcommand.
| * add initfailed hook so tmpfs plugin can properly unmount tmpfs on failure. ↵Michael E Brown2008-01-081-2/+10
| | | | | | | | make sure we call postbuild hooks even on failure.
* | Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-041-9/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of /var/ftp/pub/Applications/git/mock: split up --target and --arch cmdline options. get rid of personality() calls in sub do() calls because it is set at top level now. added --print-root-path option paul howarth's request to change from -l to --login on bash invocations use the right mkdev argument Create the dev/full device, some packages use it during make check. add ia64 and alpha to personality_defs Patch from Doug Chapman <doug.chapman@hp.com> Doug Chapman's ia64 personality warning fix Roland McGrath's fix for ctypes LoadLibrary on ia64
| * split up --target and --arch cmdline options.Michael E Brown2008-01-041-3/+3
| |
| * get rid of personality() calls in sub do() calls because it is set at top ↵Michael E Brown2008-01-041-6/+2
| | | | | | | | level now.
| * paul howarth's request to change from -l to --login on bash invocationsClark Williams2008-01-041-2/+2
| |
| * use the right mkdev argumentJesse Keating2008-01-031-1/+1
| |
| * Create the dev/full device, some packages use it during make check.Jesse Keating2008-01-031-0/+1
| |
* | Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2007-12-211-29/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of /var/ftp/pub/Applications/git/mock: /usr/sbin/mock no longer needs to be owned by group mock. remove unused debugging code. version bump and changelog fix privs for yum resolvdep, needs to be root to download addl filelists. fixup release instructions so that tags properly pushed. update changelog prior to release. bump version. add comment about making sure to fix both version defs. cleanup from unit tests if they are interrupted or end prematurely. fix resultdir for --uniqueext builds without resultdir specified. try to standardize on single-quotes for indexing hashes. we are now noarch, fix unit tests. add tmpfs plugin to installation list. requires usermode due to new userhelper stuff. fix use of tabs in spec file to make rpmlint happy. Run rpmbuild in a login shell in the chroot.
| * fix privs for yum resolvdep, needs to be root to download addl filelists.Michael E Brown2007-12-201-19/+19
| |
| * fix resultdir for --uniqueext builds without resultdir specified. try to ↵Michael E Brown2007-12-191-8/+7
| | | | | | | | standardize on single-quotes for indexing hashes.
| * Run rpmbuild in a login shell in the chroot.Michael E Brown2007-12-191-2/+2
| |
* | use makeChrootPath() functionality rather than obscure string interpolationMichael E Brown2007-12-211-1/+1
|/
* add hook (currently unused) for clean.Michael E Brown2007-12-181-0/+1
|
* comment out decorator for doChroot() to prevent logging build exceptions ↵Michael E Brown2007-12-181-1/+3
| | | | multiple times.
* make rootdir private (_rootdir). Use accessor in mock.py as well.Michael E Brown2007-12-161-3/+3
|
* fixed syntax errorClark Williams2007-12-161-1/+1
|
* replaced references to rootdir with calls to makeChrootPath()Clark Williams2007-12-141-11/+11
|
* changed more uses of .rootdir to makeChrootPath(); updated man page for ↵Clark Williams2007-12-131-3/+6
| | | | --copyin and --copyout; updated plugins to use makeChrootPath(); updated releasetests.sh so that daemon tests uses --copyin
* added copyin/out options; added makeChrootPath() method to RootClark Williams2007-12-131-25/+30
|
* remove trailing whitespace.Michael E Brown2007-12-121-2/+2
|
* Add --update call, to update existing buildroot.Jesse Keating2007-12-121-0/+9
| | | | Useful for things like pungi which continuously reuse a buildroot
* let yum resolvedep run w/privs because it has to download additional ↵Michael E Brown2007-12-111-11/+6
| | | | metadata sometimes.
* create log files as unpriv user. fixup chrootuid calc to take into account ↵Michael E Brown2007-12-061-13/+19
| | | | sudo and consolehelper