On Wed, Aug 24, 2011 at 08:47:03AM +0800, Chow Loong Jin wrote: > On 24/08/2011 02:01, Guido Günther wrote: > > On Tue, Aug 23, 2011 at 04:03:19PM +0800, Chow Loong Jin wrote: > >> On 23/08/2011 15:32, Guido Günther wrote: > >>> Hi Jérémy, > >>> On Sun, Oct 25, 2009 at 12:12:09PM +0100, Jérémy Lal wrote: > >>>> I noticed bzr-buildpackage is able to get upstream tarball > >>>> with get-orig-source or uscan, if they exist. > >>>> Should git-buildpackage (and others) provide the same feature ? > >>> > >>> git-import-orig has --uscan. > >> > >> Maybe git import-orig should also get a --get-orig-source option. > > is get-orig-source really a good interface? Wouldn't it make more sense > > to fix uscan if needed? > > Well sometimes you need to do special things to get a DFSG clean tarball. > > On the other hand, I think many get-orig-source targets don't perform as > specified in [1]. More specifically, this part: > > This target may be invoked in any directory, and should take care to clean > > up any temporary files it may have left. > > From past experiences, many get-orig-source targets can't be invoked outside > of > the source directory, and even if they could, you'd have some debian/ > directory > detection hackery looking like.. > DEBIAN_DIR = $(dir $(firstword $(MAKEFILE_LIST))
Most of this looks mostly useful when not importing the upstream tarball into git. If you want to do cleanups you can do so after importing the tarball using the help of git or you can add filters to git-import-orig which then does the repack for you. Cheers, -- Guido > > which doesn't support paths with spaces in them. (who needs spaces in paths, > eh?) > > Some get-orig-source targets also prefer to get the current tarball, rather > than > the latest tarball as mentioned in [1]. > > Perhaps uscan should be fixed to get a --script option to mangle tarballs > after > downloading them. And possibly also to get VCS support for packages that don't > have upstream tarballs. > > How does bzr buildpackage do it anyway? > > [1] http://www.debian.org/doc/debian-policy/ch-source.html > > -- > Kind regards, > Loong Jin > -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110826183316.ga28...@bogon.sigxcpu.org