Commit Graph

31 Commits

Author SHA1 Message Date
Fabio Erculiani a9383c76da [molecule/utils] add eval_shell_argument function 2012-07-25 16:22:53 +02:00
Fabio Erculiani 5a05fe6315 [molecule.utils] remove_path_sandbox: do not use Popen with shell=True but rather use glob.glob() 2011-09-04 13:11:26 +02:00
Fabio Erculiani 7ecd318eef [molecule] rewrite molecule.utils.exec_cmd() to not use shell=True
The following changes were required code-wide:
- use shlex.split() to split commands read from spec files
- use glob.glob() where required
- write command splitter function and make use of it instead of
  simple string splitter
2011-09-04 11:52:02 +02:00
Fabio Erculiani 44cfee227a [molecule.utils] enhance kill_chroot_pids(), add ability to sleep and wait for scripts to leave "zombies" 2011-07-21 13:55:07 +02:00
Fabio Erculiani 77c76dab93 [molecule.utils] prefer execvp() over subprocess.call() in forked process 2011-07-21 12:59:44 +02:00
Fabio Erculiani 297256e575 [molecule.utils] add kill_chroot_pids function, requires lsof (new dependency) 2011-07-21 12:39:41 +02:00
Fabio Erculiani b3f407d683 [molecule] image_plugin: fix chroot copy to mounted image file 2011-07-20 23:53:39 +02:00
Fabio Erculiani 32ae4ee718 [molecule] add support for MOLECULE_TMPDIR environment variable (defaulting to /var/tmp), so that user can override it 2010-11-11 19:18:58 +01:00
Fabio Erculiani 2786c84a3f [molecule.utils] improve reliability of valid_exec_check and remove_path_sandbox 2010-08-12 22:39:41 +02:00
Fabio Erculiani 6755f0cbf1 [molecule.utils] add mkdtemp() 2010-08-08 18:34:54 +02:00
Fabio Erculiani 182cc565a5 [molecule.utils] add get_random_str() 2010-08-08 17:42:04 +02:00
Fabio Erculiani 256e76ffa7 [molecule.utils] improve random numbers generation 2010-08-08 15:54:43 +02:00
Fabio Erculiani 96b022db3e [molecule.utils] add "env" keyword argument to exec_chroot_cmd and exec_cmd 2010-08-08 15:45:58 +02:00
Fabio Erculiani 6c7e08d3ec [molecule.utils] add exec_cmd_get_status_output function 2010-08-08 15:09:12 +02:00
Fabio Erculiani 3e33d0cbee [molecule] add support for enforcing super user privileges requirements 2010-08-01 18:21:11 +02:00
Fabio Erculiani b9fb6cde6a [molecule.utils] add some documentation 2010-08-01 18:10:01 +02:00
Fabio Erculiani a0926805e2 [molecule.utils] exec_chroot_cmd: tweak default args 2010-07-23 10:40:44 +02:00
Fabio Erculiani 174967f7e7 [molecule.utils] make md5sum() working with Python3.x 2010-06-29 11:09:25 +02:00
Fabio Erculiani 133c110833 [molecule] improve Python 3.x support 2010-06-29 10:37:28 +02:00
Fabio Erculiani 153cf5b6a5 [molecule] remove python 2.5 __future__ import 2010-04-22 22:13:04 +02:00
Fabio Erculiani 31592156e0 [molecule] kill all running children pids on exit 2010-04-18 18:49:46 +02:00
Fabio Erculiani 0f14fd9fc7 [molecule] complete support for easily remastering Sabayon ISO images 2009-10-25 13:57:13 +01:00
Fabio Erculiani bcbbc5aace fix molecule.utils.remove_path_sandbox
paths did not get expanded when using list arguments, so try using
shell = True and pass a string
2009-03-26 15:31:04 +01:00
root 25d9c43760 do not reimplement built-in exceptions
Remove exceptions shadowing built-in ones from molecule.exceptions
and update the code to work with this change
2009-03-25 12:47:33 +01:00
lxnay 527526c223 Molecule:
- generate ISO md5 file automatically


git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@3190 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 17:13:54 +00:00
lxnay 026a41963e Molecule:
- implement sandbox support on ChrootHandler


git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@3104 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-03 12:20:43 +00:00
lxnay a32f32c02f Molecule: implement prechroot facility
git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@2992 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-05 12:13:40 +00:00
lxnay 372caef077 Molecule:
- massive bugfixing, it's starting to work


git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@2990 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 21:18:37 +00:00
lxnay 38223f3d14 Molecule:
- bugfixing several areas
- adding missing spec file options


git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@2989 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 15:19:05 +00:00
lxnay f94f34122a Molecule:
- initial code in place


git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@2982 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 07:34:12 +00:00
lxnay b253287f15 Molecule:
- first chunk of code
- general infrastructure done
- spec file parser done


git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@2977 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 21:57:47 +00:00