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

Help with watch file for OBS?



My tarball is on the OBS. I want to write a watch file for it.

My procedure to get the file is:
look in:
https://build.opensuse.org/package/files?package=libreoffice-converter&project=LibreOffice:Unstable

For strings that look like:

<a href="https://api.opensuse.org:443/public/source/LibreOffice:Unstable/libreoffice-converter/libreoffice-
converter-3.3.tar.bz2?rev=2dffadb97b188c6bc4c0037f1d4c446d&amp;">

The 3.3 is the version number the part that can vary.

?rev=BLAH

must be thrown away to get
https://api.opensuse.org:443/public/source/LibreOffice:Unstable/libreoffice-converter/libreoffice-converter-3.3.tar.bz2

Which can be downloaded with wget.

My current watch file reads:

>version=3

>opts=filenamemangle=s/(.*)\?rev=.*/$1/ \
>https://build.opensuse.org/package/files?package=libreoffice-converter&project=LibreOffice:Unstable \
>https://api.opensuse.org:443/public/source/LibreOffice:Unstable/libreoffice-converter/libreoffice-converter-(\d\.\d)\.tar\.bz2

It does not find a match.

What am I doing wrong?

If I can get this working, I will post it so everyone can have watch files for OBS.



-- 
Paul Elliott                               1(512)837-1096
pelliott@BlackPatchPanel.com               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: