Differences between revisions 41 and 42
Revision 41 as of 2014-05-12 07:51:30
Size: 1419
Editor: AndreasTille
Comment: Reflect the fact that this page now basically lists existing uscan features.
Revision 42 as of 2014-05-12 07:52:01
Size: 1177
Editor: AndreasTille
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
== Once we are start removing files ==

The current implementation [[http://anonscm.debian.org/gitweb/?p=users/tille/devscripts.git;a=summary|in the git repository from Andreas Tille]] does a bit more once repackaging becomes necessary:

Unifying the process to strip files with problematic copyright from upstream tarballs

The following features of uscan since devscripts version 2.14.2 are helpful to deal with upstream tarballs you need to tweak

Deleting Files using Files-Excluded field in debian/copyright

By using

  • File-Excluded: foo/bar.js

in debian/copyright you can exclude files from an upstream tarball (see man uscan).

Specifying better compression method

You can specify a more reasonable compression method using uscan --repack --compression <compression>. You can use xz, bz2, gz, or lzma here. (see man uscan)

Not yet implemented but potentially helpful

When repackaging tar --exclude-vcs is used. Usually there is no point in having VCS metainformation in upstream tarballs. It should be depated in a separate thread whether this option should be used unconditionally but the current implementation is that way. So in the example above the specification of .git is redundant because it will be left out anyway. The feature to exclude vcs information from upstream tarballs will be subject of a future bug report.