tito/test/unit
Alex Wood 09d89eb4ef Fix tarball timestamps from git archive with Python.
Tito passes "git archive" a tree ID.  The "git archive" man page states:

    git archive behaves differently when given a tree ID versus when
    given a commit ID or tag ID. In the first case the current time
    is used as the modification time of each file in the archive.

Using the current time means that every time we build the source
tarball, the file fingerprint will change since the metadata in the
tarball changes.  We don't want that since build systems track the
fingerprint to see if the actual source has changed.

This process was previously handled in an enigmatic Perl script that
lacked any comments whatsoever.  Converting it to well-commented Python
makes the process less mysterious and speedier since Tito doesn't need
to shell out to Perl.
2015-05-15 13:07:34 -04:00
..
resources Fix tarball timestamps from git archive with Python. 2015-05-15 13:07:34 -04:00
__init__.py Big test refactor. 2009-07-24 23:00:45 -03:00
common-tests.py Fix failing tests with no ~/.bugzillarc. 2014-06-23 15:01:57 -03:00
fixture.py deprecate GitPython 2014-03-09 13:56:17 +00:00
pep8-tests.py resolve another use of commands module for python3 compat 2014-03-09 13:12:32 +00:00
test_build_target_parser.py avoid TB on python3 due to git format string 2014-03-11 14:38:03 +00:00
test_tar.py Fix tarball timestamps from git archive with Python. 2015-05-15 13:07:34 -04:00