Bug#775526: /usr/bin/uscan: passing --compression=xz ignored

David Prévot taffit at debian.org
Fri Jan 16 21:17:47 UTC 2015


Hi,

On Fri, Jan 16, 2015 at 11:19:18AM -0800, Vagrant Cascadian wrote:

> I've tried passing the --compression=xz option to uscan, but it
> doesn't appear to pass that on to mk-origtgz.
[…]
> Running uscan:
> 
>   uscan --compression=xz
[…]
>       Successfully repacked ../u-boot-2015.01.tar.bz2 as ../u-boot_2015.01+dfsg1.orig.tar.bz2, deleting 17 files from it.

> It simply repacks the tarball as bz2 file.

Actually, it simply strips away the files from the existing tarball, and
renames it(s copy) to match the usual expectations.

You need to explicitly use the --repack switch if you want a repack
(unless the original is not a friendly format, e.g., ZIP):

  uscan --repack --compression=xz

Maybe the text in uscan(1) comes from an earlier implementation, and
the text within parenthesis:

    --compression [ gzip | bzip2 | lzma | xz ]
           In  the  case  where  the  upstream  sources  are
           repacked (either because --repack option is given
           or  debian/copyright  contains  the  field Files-
           Excluded) […]

should be changed to something like: 

                    (either because it is a zip file or because
           of --repack)

(and ditto in mk-origtargz(1)).

Regards

David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20150116/76dcb8ca/attachment.sig>


More information about the devscripts-devel mailing list