Bug#224770: debian-policy: incorrect tar example deb manipulation
Package: debian-policy
Version: 3.5.6.1
Severity: normal
Tags: patch
One of the examples listed in B.1 is not correct and does not work.
Three problems. One is that 'xof' does not write to stdout, 'xOf'
does. Another is that filenames in debs start with "./" and so the
listed file will not be matched. Third is that f needs a filename and
"-" is usually the tradition, but hyphen problems with fonts probably
caused it to be dropped. That last probably needs a special
crosscheck to make sure it makes it through the formatting.
Here is one possible patch:
To view the copyright file for a package you could use this command:
- dpkg --fsys-tarfile filename.deb | tar xof usr/share/doc/\*copyright | less
+ dpkg --fsys-tarfile filename.deb | tar xOf - \*/copyright | less
--
Bob Proulx <bob@proulx.com>
http://www.proulx.com/~bob/
Reply to: