The only case when we can avoid writing the compressed data.tar is
when the compressed information is appended directly (format 0).
Let's just be more clear about it.
---
dpkg-deb/build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 703136a..41d14dc 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -672,7 +672,7 @@ do_build(const char *const *argv)
}
create_data_tar(dir, gzfd);
/* Okay, we have data.tar as well now, add it to the ar wrapper. */
- if (deb_format.major == 2) {
+ if (deb_format.major != 0) {
write_data_tar(debar, arfd, gzfd);
}
if (fsync(arfd))
--
Lunar .''`.
lunar@debian.org : :Ⓐ : # apt-get install anarchism
`. `'`
`-
Attachment:
signature.asc
Description: Digital signature