Merge lp:~maxb/bzr-builddeb/lzma-tar-length-fix into lp:bzr-builddeb

Proposed by Max Bowsher
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: 606
Merged at revision: 607
Proposed branch: lp:~maxb/bzr-builddeb/lzma-tar-length-fix
Merge into: lp:bzr-builddeb
Diff against target: 25 lines (+15/-0)
1 file modified
tests/test_import_dsc.py (+15/-0)
To merge this branch: bzr merge lp:~maxb/bzr-builddeb/lzma-tar-length-fix
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+72293@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/test_import_dsc.py'
2--- tests/test_import_dsc.py 2011-07-25 13:11:01 +0000
3+++ tests/test_import_dsc.py 2011-08-20 12:50:23 +0000
4@@ -904,6 +904,21 @@
5 os.mkdir(basedir)
6 write_to_file(os.path.join(basedir, "README"), "Hi\n")
7 write_to_file(os.path.join(basedir, "BUGS"), "")
8+ # Some versions of tar, including that in Ubuntu lucid and maverick,
9+ # but not natty and later, have a bug which prevents them from
10+ # autodetecting the compression type of files less than 512 bytes in
11+ # length. So, add some extra verbiage to push us just above that
12+ # boundary. This matters for lzma, but not gz and bz2, because
13+ # pristine-tar has its own decompression support for those.
14+ write_to_file(os.path.join(basedir, "LOREM"),
15+ "Lorem ipsum dolor sit amet, consectetur adipisicing elit, "
16+ "sed do eiusmod tempor incididunt ut labore et dolore magna "
17+ "aliqua. Ut enim ad minim veniam, quis nostrud exercitation "
18+ "ullamco laboris nisi ut aliquip ex ea commodo consequat. "
19+ "Duis aute irure dolor in reprehenderit in voluptate velit "
20+ "esse cillum dolore eu fugiat nulla pariatur. Excepteur sint "
21+ "occaecat cupidatat non proident, sunt in culpa qui officia "
22+ "deserunt mollit anim id est laborum.")
23 tar_path = "package_0.1.orig.tar.lzma"
24 f = lzma.LZMAFile(tar_path, 'w')
25 try:

Subscribers

People subscribed via source and target branches