Package: file
Version: 4.12-1

-anarres:file-magic> dpkg-deb -Zbzip2 -b x
dpkg-deb: building package `mozilla-firefox' in `x.deb'.
-anarres:file-magic> file x.deb 
x.deb: Debian binary package (format 2.0), uses gzip compression
-anarres:file-magic> ar t x.deb
debian-binary
control.tar.gz
data.tar.bz2
-anarres:file-magic>

--- ../orig/file-4.12/magic/Magdir/archive      2004-11-21 16:34:11.000000000 
+0000
+++ magic/Magdir/archive        2005-09-16 13:23:04.000000000 +0100
@@ -33,8 +33,13 @@
 >8     string          debian-split    part of multipart Debian package
 >8     string          debian-binary   Debian binary package
 >68    string          >\0             (format %s)
->81    string          bz2             \b, uses bzip2 compression
->84    string          gz              \b, uses gzip compression
+# These next two lines do not work, because a bzip2 Debian archive
+# still uses gzip for the control.tar (first in the archive).  Only
+# data.tar varies, and the location of its filename varies too.
+# file/libmagic does not current have support for ascii-string based
+# (offsets) as of 2005-09-15.
+#>81   string          bz2             \b, uses bzip2 compression
+#>84   string          gz              \b, uses gzip compression
 #>136  ledate          x               created: %s
 
 # other archives

I will also report this upstream.

Ian.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to