30 Commits

Author SHA1 Message Date
Fabio Erculiani 745732eb1d [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 bba60f30c2 [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 e227c0a625 [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 f30ffa4fac [molecule.utils] prefer execvp() over subprocess.call() in forked process 2011-07-21 12:59:44 +02:00
Fabio Erculiani e5b1dda68c [molecule.utils] add kill_chroot_pids function, requires lsof (new dependency) 2011-07-21 12:39:41 +02:00
Fabio Erculiani 50f38369e9 [molecule] image_plugin: fix chroot copy to mounted image file 2011-07-20 23:53:39 +02:00
Fabio Erculiani df9e0af193 [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 240e79a5c0 [molecule.utils] improve reliability of valid_exec_check and remove_path_sandbox 2010-08-12 22:39:41 +02:00
Fabio Erculiani e78499849b [molecule.utils] add mkdtemp() 2010-08-08 18:34:54 +02:00
Fabio Erculiani ea2edc7297 [molecule.utils] add get_random_str() 2010-08-08 17:42:04 +02:00
Fabio Erculiani 0badcb8613 [molecule.utils] improve random numbers generation 2010-08-08 15:54:43 +02:00
Fabio Erculiani 601b9cd752 [molecule.utils] add "env" keyword argument to exec_chroot_cmd and exec_cmd 2010-08-08 15:45:58 +02:00
Fabio Erculiani fa3530c7e8 [molecule.utils] add exec_cmd_get_status_output function 2010-08-08 15:09:12 +02:00
Fabio Erculiani 0495f25a81 [molecule] add support for enforcing super user privileges requirements 2010-08-01 18:21:11 +02:00
Fabio Erculiani 83dd67e84b [molecule.utils] add some documentation 2010-08-01 18:10:01 +02:00
Fabio Erculiani 2ce1c71664 [molecule.utils] exec_chroot_cmd: tweak default args 2010-07-23 10:40:44 +02:00
Fabio Erculiani 977b69a4b5 [molecule.utils] make md5sum() working with Python3.x 2010-06-29 11:09:25 +02:00
Fabio Erculiani 7e8f080ec5 [molecule] improve Python 3.x support 2010-06-29 10:37:28 +02:00
Fabio Erculiani bf9314455c [molecule] remove python 2.5 __future__ import 2010-04-22 22:13:04 +02:00
Fabio Erculiani 657a6ed262 [molecule] kill all running children pids on exit 2010-04-18 18:49:46 +02:00
Fabio Erculiani eb700e5133 [molecule] complete support for easily remastering Sabayon ISO images 2009-10-25 13:57:13 +01:00
Fabio Erculiani 2b658b5259 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 bccb1f97d2 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 4c07da0ffd 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 fae805e3fd 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 5f8bd237d1 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 0d469c494a 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 b2a5ab49a4 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 3659c5db71 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 1cda81a93d 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