]> git.ipfire.org Git - thirdparty/pciutils.git/commit
file timestamp not needed in pci.ids.gz
authorGilles Espinasse <g.esp@free.fr>
Fri, 26 Jun 2009 09:37:47 +0000 (11:37 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 4 Jul 2009 13:48:09 +0000 (15:48 +0200)
commit7b2bf3a29fd337711d597807c6ef5594cc50e70f
tree38a4659d7130b54c9742a6e87e377ed25ba9033e
parentebcc5e95afda6bb621fcccec5ac2bdff4afbdd85
file timestamp not needed in pci.ids.gz

File timestamp (and file name) have no use for pci.ids.gz
This allow to produce the exact same file even when compiled at different times.
That make paranoid happy.

Even gzip-1.2.4 from 1993 support -n option

Concerning the fact that -n did not include file name, that does not matter
unless the compressed file is moved under a different name and later -N option
 is used to open the file.

[chroot-i486] root:/$ gzip -9 /usr/share/pci.ids
[chroot-i486] root:/$ gzip -l /usr/share/pci.ids.gz
         compressed        uncompressed  ratio uncompressed_name
             161106              590309  72.7% /usr/share/pci.ids
[chroot-i486] root:/$ mv /usr/share/pci.ids.gz /usr/share/pci.foo.gz
[chroot-i486] root:/$ gzip -lN /usr/share/pci.foo.gz
         compressed        uncompressed  ratio uncompressed_name
             161106              590309  72.7% /usr/share/pci.ids
[chroot-i486] root:/$ gzip -dN /usr/share/pci.foo.gz
[chroot-i486] root:/$ ls -l /usr/share/pci.ids
-rw-r--r-- 1 root root 590309 Jun 26 07:59 /usr/share/pci.ids

[chroot-i486] root:/$ gzip -9n /usr/share/pci.ids
[chroot-i486] root:/$ mv /usr/share/pci.ids.gz /usr/share/pci.foo.gz
[chroot-i486] root:/$ gzip -lN /usr/share/pci.foo.gz
         compressed        uncompressed  ratio uncompressed_name
             161098              590309  72.7% /usr/share/pci.foo

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Makefile