mk-origtargz (Was: Problem with *.zip archives)

Joachim Breitner nomeata at debian.org
Sun May 4 21:55:55 UTC 2014


Hi,

Am Sonntag, den 04.05.2014, 22:15 +0200 schrieb Andreas Tille:
> On Thu, May 01, 2014 at 02:25:12PM +0200, Joachim Breitner wrote:
> > In that case, I believe that
> > $ cd foo-1.2.3/
> > $ vim debian/copyright # add files to Files-Excluded
> > $ mk-origtargz ../foo_1.2.3.orig.tar.gz
> 
> Hmmm, I did so in camitk, added
> 
> Files-Excluded: *.swf
> 
> to d/copyright and tried:
> 
> 
> $ mk-origtargz ../camitk_3.3.1.orig.tar.gz 
> Unknown or no compression used in ../camitk_3.3.1.orig.tar.gz. at /usr/bin/mk-origtargz line 335.
> 
> Any hint?

I get:
        /tmp/camitk-3.2.2 $ mk-origtargz ../camitk_3.2.2.orig.tar.gz
        Leaving ../camitk_3.2.2.orig.tar.gz where it is.

(which makes sense: tar tzf ../camitk_3.2.2.orig.tar.gz|grep swf lists
no files).

If I add "*/dicom" to Files-Excluded, I get
        /tmp/camitk-3.2.2 $ mk-origtargz ../camitk_3.2.2.orig.tar.gz
        Leaving ../camitk_3.2.2.orig.tar.gz where it is, deleting 168
        files from it.
and the file is smaller, so it looks like it is working as intended.



Note that "Files-Excluded: dicom" does _not_ work since James’s patch
d7f603e2e15257be0c539a1f62b097f3a2109892, which makes sure the same
semantics as for "Files" stanza is used, and there it is specified:
        Patterns match pathnames that start at the root of the source
        tree. Thus, "Makefile.in" matches only the file at the root of
        the tree, but "*/Makefile.in" matches at any depth.

Not sure what broke for you. Do you have "file" installed?

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20140504/9b2259bb/attachment.sig>


More information about the devscripts-devel mailing list