[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Enabling uupdate to simply remove files from upstream source (Was: Minified javascript files)




Le 17 août 2012 14:15, "Andreas Tille" <andreas@an3as.eu> a écrit :
>
> Hi Gregor,
>
> On Fri, Aug 17, 2012 at 01:47:48PM +0200, gregor herrmann wrote:
> > On Fri, 17 Aug 2012 13:08:39 +0200, Andreas Tille wrote:
> >
> > > So we finally have three independently developed solutions (we also have
> > > several instances of a debian/get-orig-source script in Debian Med
> > > team) and
> >
> > pkg-perl variant:
> > http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=tree
> > repack.sh and repack.stub there
>
> Solution 4. ;-)
>
> > > my suggestion was just to settle with a common and simple
> > > solution.  This should be pretty simple to implement (I'd volunteer to
> > > do this but wanted to seek for comments before filing a bug report +
> > > patch).
> >
> > Yup, that would be nice.
> > But I don't think it belongs into uupdate but in uscan.
>
> Right that's correct (and explains Daniel's hint there is no need for
> uupdate).
>
> Discussion:
>
>  1. I propose a file debian/uscan.remove which contains regular expressions.
>     The deletion process will loop over every line and does
>
>      rm -rf ${MAIN_SOURCE_DIR}/<_expression_>
>
>  2. uscan just knows the option --repack.  Do we want to reuse this and start
>     deleting files in case the file debian/uscan.remove exists or do we
>     want to use an explicite option --repack-and-remove?  I have some
>     preference for just using --repack.
>
>  3. If the tarball did not contained any of the strings in
>     debian/uscan.remove it should be left untouched (except if the repackaging
>     is needed because of compression method anyway)
>
>  4. In case something was removed the version string will be appended by
>     '~dfsg' to express the fact that the content of the original source
>     was changed.
>
> What do you think?

I like this

Please add a flag for specifying recompression method

Bastien
>
> Kind regards
>
>       Andreas.
>
> --
> http://fam-tille.de
>
>
> --
> To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 20120817121249.GE6417@an3as.eu">http://lists.debian.org/[🔎] 20120817121249.GE6417@an3as.eu
>


Reply to: