diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-02-04 10:04:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-04 10:04:58 -0800 |
commit | 390ac27a18d6d64b050bc331592af2dac919d7d1 (patch) | |
tree | cb42258808c5f72331f2dc380fd731dbb3480d17 /t | |
parent | 6cc01490c368b6f54821acc0bd2b7bd9600342e3 (diff) | |
parent | 2e4f04fae6810161c17bf456124b364ad927c499 (diff) | |
download | git-390ac27a18d6d64b050bc331592af2dac919d7d1.tar.gz |
Merge branch 'bc/git-p4-for-python-2.4' into maint
* bc/git-p4-for-python-2.4:
INSTALL: git-p4 does not support Python 3
git-p4.py: support Python 2.4
git-p4.py: support Python 2.5
Diffstat (limited to 't')
-rwxr-xr-x | t/t9802-git-p4-filetype.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/t/t9802-git-p4-filetype.sh b/t/t9802-git-p4-filetype.sh index 21924dfd7d..aae1a3f816 100755 --- a/t/t9802-git-p4-filetype.sh +++ b/t/t9802-git-p4-filetype.sh @@ -105,12 +105,13 @@ build_gendouble() { cat >gendouble.py <<-\EOF import sys import struct - import array - s = array.array("c", '\0' * 26) - struct.pack_into(">L", s, 0, 0x00051607) # AppleDouble - struct.pack_into(">L", s, 4, 0x00020000) # version 2 - s.tofile(sys.stdout) + s = struct.pack(">LL18s", + 0x00051607, # AppleDouble + 0x00020000, # version 2 + "" # pad to 26 bytes + ) + sys.stdout.write(s) EOF } |