On Thursday 02 April 2009 14:03:06 Reinhard Tartler wrote:
> Raphael Geissert <[email protected]> writes:
> >> What I would personally like to do is have a watchfile that has this
> >> snippet.
> >>
> >> # Run an external script for checking and/or downloading new upstream
> >> source use-check-script=debian/path-to-script \
> >> use-check-script-options="a b c ..." \
> >
> > I strongly *object* to adding such a feature because it is very likely
> > that such scripts can't be accessed by DEHS. Either because the foo
> > package providing the bar tool is not installed or as simple as the fact
> > that DEHS _only_ extracts the watch file from the .diff and *not* the
> > whole .orig.
>
> What would be really useful is if uscan could unpack the contents of the
> downloaded tarball, run a custom script in it, and then repack the
> tarball. You can find an example of such a script at [1].
>

uscan already provides a similar feature (but no unpacking is done):
http://.../file-... debian path/to/script

Please refer to uscan(1)

> DEHS and similar services only need to check for new versions, but not
> really repack them. So this option certainly shouldn't be enabled by
> default.
>
> [1]
> http://git.debian.org/?p=pkg-multimedia/ffmpeg-debian.git;a=blob;f=debian/s
>trip.sh;hb=HEAD
>
> >> use-download-script=debian/path-to-script \
> >> use-download-script-options="a b c ..."
> >
> > Why are two options needed for this?
> > E.g. use-download-script="debian/path-to-script a b c ..." \
>
> I think the script should be called with the new version of the package
> that was detected and downloaded. This way the script can cope with
> changes to the structure of the upstream sources.
>
> If such a thing was already available, please let me know.

Cheers,
-- 
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to