Implemented cleaning of temporary files and directories.
authorEd Bartosh <eduard.bartosh@intel.com>
Wed, 25 Jul 2012 09:34:50 +0000 (12:34 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Wed, 25 Jul 2012 11:52:10 +0000 (14:52 +0300)
commitb4605d415444fda3d2e7973dc456f585f0f4008a
tree80a574f2cd1dbfe7889813ff21117a5498903439
parent95759f9170818f184491e3eb65d0b2c1db33023a
Implemented cleaning of temporary files and directories.

Implemented in utils.Temp class, which creates temporary file or
directory using tempfile.md[ds]temp and destroys it when object is
deleted(garbage collected when it's out of the scope or upon program
exit).  Fixes #184 and #175.

To avoid abnormal gbs exit(and not deleting temporaries) Exception is
catched in gbs main module.

Change-Id: I04d7067fc293e8b712f183a3d8260dc946058fa7
gitbuildsys/cmd_build.py
gitbuildsys/cmd_export.py
gitbuildsys/cmd_remotebuild.py
gitbuildsys/utils.py
tools/gbs