aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/tmpfile.py
Commit message (Collapse)AuthorAge
* tmpfile: flake8 cleanGuido Günther2016-09-12
|
* Change FSF address to URL in few more file headersMarkus Lehtonen2015-10-20
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Add gbp buildpackage-rpmGuido Günther2015-08-19
| | | | This adds a minimal gbp buildpackage-rpm based on Markus Lehtonens work.
* Rewrite gbp.tmpfileMarkus Lehtonen2015-08-19
| | | | | | | | | | | | | | | | | | This commit changes the tmpfile module to only contain minimal init_tmpdir() and del_tmpdir() functions, intended to be called at the beginning and end of the scipts. The init function creates a base tempdir and configures the Python tempfile module to use that as the (default) directory for temporary files and directories. Correspondingly, the del function removes the base tempdir and restores the configuration of the tempfile module. The new logic ensures that all temporary files/directories will be created in the desired base tempdir (assuming that no 'dir' argument is given to the tempfile functions). The base tempdir is not removed by del_tmpdir() if a non-empty value of GBP_TMPFILE_NOCLEAN is found in environment. This can be useful e.g. in debugging. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Fix FSF address - thanks rpmlintEvgeni Golov2015-06-22
| | | | use gnu.org/licences instead of a postal address, as suggested by Guido
* Add gbp specific tempfile moduleMarkus Lehtonen2014-07-24
Minimal initial implementation that only adds tempdir parent directory creation. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Olev Kartau <olev.kartau@intel.com>