summaryrefslogtreecommitdiffstats
path: root/py/mock
Commit message (Collapse)AuthorAgeFilesLines
...
* workaround new rpm issues by deleting rpmdb temp files after unpacking root ↵Clark Williams2008-08-291-7/+13
| | | | cache
* create BUILDROOT dir required by new rpmbuildClark Williams2008-08-291-1/+1
|
* fix typo which causes exception in command-timeout code (which was trying to ↵Michael E Brown2008-03-311-1/+1
| | | | raise exception)
* add support for shmMichael E Brown2008-03-091-7/+12
|
* log child return code for debugging.Michael E Brown2008-03-041-0/+1
|
* modify rootcache logic to rebuild cache if config files have newer timestampClark Williams2008-02-292-1/+11
|
* add fcntl importMichael E Brown2008-01-301-0/+1
|
* Merge ssh://mock/var/ftp/pub/Applications/git/mockMichael E Brown2008-01-293-29/+34
|\ | | | | | | | | | | | | * ssh://mock/var/ftp/pub/Applications/git/mock: updates to mock.util.do(): 1) nonblocking read, 2) dont leave zombies (waitpid). we now run /etc/profile, so no need to manually do ccache stuff. use makeChrootPath() functionality rather than obscure string interpolation
| * updates to mock.util.do(): 1) nonblocking read, 2) dont leave zombies (waitpid).Michael E Brown2008-01-291-12/+32
| |
| * Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-228-166/+189
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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.
| * | we now run /etc/profile, so no need to manually do ccache stuff.Michael E Brown2008-01-221-16/+1
| | |
| * | Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-043-11/+9
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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
| * \ \ 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.
| * | | | use makeChrootPath() functionality rather than obscure string interpolationMichael E Brown2007-12-211-1/+1
| | | | |
* | | | | set the current working directory in the chrootMike Bonnet2008-01-241-4/+9
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch allows you to set the current working directory (in the chroot) before running a command with --chroot. This avoids the need to pass shell snippets ('cd /some/path && /run/cmd') to mock when running a command that expects to executed from a certain directory. It's useful when using --copyin to setup the environment before running a command. >From e4071d1d41a62ccf4461dfab958f9325edf30c97 Mon Sep 17 00:00:00 2001 From: Mike Bonnet <mikeb@redhat.com> Date: Thu, 24 Jan 2008 17:09:06 -0500 Subject: [PATCH] optionally set the current working directory (in the chroot) before running command with --chroot Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
* | | | get rid of one level of shell indirection where possible.Michael E Brown2008-01-202-10/+15
| | | |
* | | | add back in dropped '.' to tar cvf command that is causing root cache ↵Michael E Brown2008-01-202-1/+2
| | | | | | | | | | | | | | | | creation to fail. Add debug logging for running commands.
* | | | convert mock.util.do() to use subprocess.Popen() rather than raw ↵Michael E Brown2008-01-205-146/+144
| | | | | | | | | | | | | | | | fork/exec.\nThis cleans up the code considerably. Also, start reducing the places where we use a shell in the subcommand.
* | | | clarify info message to make it obvious that root cache is being unpacked.Michael E Brown2008-01-091-1/+1
| | | |
* | | | cleanup trailing whitespace.Michael E Brown2008-01-084-9/+9
| | | |
* | | | add ability to conditionally enable tmpfs based on minimum ram availability.Michael E Brown2008-01-081-1/+10
| | | |
* | | | add initfailed hook so tmpfs plugin can properly unmount tmpfs on failure. ↵Michael E Brown2008-01-082-2/+12
| |_|/ |/| | | | | | | | make sure we call postbuild hooks even on failure.
* | | 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
| | |
* | | add ia64 and alpha to personality_defsDoug Chapman2007-12-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch to quiet the "Unable to find predefined setarch personality" warnings seen on ia64. I added alpha as well while I was at it. Signed-off-by: Doug Chapman <doug.chapman@hp.com> ---- Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
* | | Patch from Doug Chapman <doug.chapman@hp.com>Michael E Brown2007-12-312-2/+2
| |/ |/| | | | | | | | | Fix up mock ctypes libc usage so that it doesnt directly specify libc soname, which can change on different arches. Instead use "None", which should resolve to use already-loaded global scope. -- signed off by: Michael Brown <mebrown@michaels-house.net>
* | 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
|/
* unmount tmpfs when done or we run into problems with clean.Michael E Brown2007-12-181-0/+7
|
* add hook (currently unused) for clean.Michael E Brown2007-12-181-0/+1
|
* fixup typo: makeChrootPath is a method on self.rootObj.Michael E Brown2007-12-181-1/+2
|
* add initial tmpfs plugin and default options.Michael E Brown2007-12-181-0/+33
|
* comment out decorator for doChroot() to prevent logging build exceptions ↵Michael E Brown2007-12-181-1/+3
| | | | multiple times.
* fix path comparison for orphanskill.Michael E Brown2007-12-171-1/+1
|
* make rootdir private (_rootdir). Use accessor in mock.py as well.Michael E Brown2007-12-161-3/+3
|
* dont do setarch personality() call for noarchMichael E Brown2007-12-161-1/+1
|
* fixed syntax errorClark Williams2007-12-161-1/+1
|
* resolved merge conflictsClark Williams2007-12-141-1/+1
|\
| * remove uses of chroot rootdir attribute and use accessor.Michael E Brown2007-12-142-4/+2
| |
* | replaced references to rootdir with calls to makeChrootPath()Clark Williams2007-12-141-3/+2
| |
* | replaced references to rootdir with calls to makeChrootPath()Clark Williams2007-12-141-1/+0
| |
* | 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-134-14/+15
| | | | --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