Mailinglist Archive: opensuse-buildservice (150 mails)

< Previous Next >
[opensuse-buildservice] how to create a debian watch file for tarballs hosted on the OBS.

How to create a watch file for a tarball found on the OBS (Open Build Service).

First find the Sources package page for the package that uses your tarball.
If you do not already know this, perhaps you can search for it here:

Once you have found the page for your package, you can click on "Sources".

In my example, my package is libreoffice-converter, so I find this page:

You should find links for the various sources that go to make up the source
And this should include the tarball.

If you look at the source for that web page, it will include a link that looks
like this:

The \?rev=BLAH stuff needs to be thrown away.

So you create a watch file that looks like this:

opts=filenamemangle=s/\?rev=.*// \

The first line:
opts=filenamemangle=s/\?rev=.*// \

Says we are going to throw away the ?rev= stuff.

The second line is the package source page that we found:

The third line is the link target:\d\.\d)\.tar\.bz2\?rev=.*

The version part 3.3, has been written as (\d\.\d) so uscan can abstract the
version numbers.
And it includes the part that will be thrown away "\?rev=.*".

Thanks to David Paleino for helping me with this.

Paul Elliott 1(512)837-1096
pelliott@xxxxxxxxxxxxxxxxxxx PMB 181, 11900 Metric Blvd Suite J Austin TX 78758-3117
< Previous Next >
Follow Ups