watch file syntax

October 17th, 2011 - 09:30 am ET by Ole Streicher | Report spam
Dear list (again :-)),

thank you very much for helping so far --

I have now another problem: the upstream url is something like
<http://stsdas.stsci.edu/astrolib/py...ar.gz>, but the URL
<http://stsdas.stsci.edu/astrolib/> just gives some errors, preventing
the watch file from working directly.

However, the upstream url is mentioned on the page

<http://trac.assembla.com/astrolib/>

and if I follow
<http://www.debian.org/doc/manuals/m...#docs>, I
should therefore use something like

# watch control file for uscan
version=3
http://trac.assembla.com/astrolib/pywcs-(.+)-.+\.tar\.gz debian uupdate

as the "debian/watch" file, right?

<http://www.debian.org/doc/manuals/m...l#docs>
| Normally with a watch file, the URL at http://sf.net/gentoo is
^^^^^^^^^^^^^^^^^^^^
in my case, this is http://trac.assembla.com/astrolib

| downloaded and searched for links of the form <a href=...>. The
| basename (just the part after the final /) of each linked URL is
| compared against the Perl regular expression pattern (see perlre(1))
| gentoo-(.+)\.tar\.gz. Out of the files that match, the one with the
^^^^^^^^^^^^^^^^^^^^
in my case, this is pywcs-(.+)-.+\.tar\.gz

| greatest version number is downloaded and the uupdate program is run
| to create an updated source tree.

However, "uscan" always tells me "no matching hrefs for watch line"?
What do I wrong here, and how could the problems be solved?

Best regards

Ole


To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/ytzpqhvwy5z.fsf@news.ole.ath.cx
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Ansgar Burchardt
October 17th, 2011 - 10:20 am ET | Report spam
Ole Streicher writes:
<http://www.debian.org/doc/manuals/m...l#docs>
| Normally with a watch file, the URL at http://sf.net/gentoo is
^^^^^^^^^^^^^^^^^^^^
in my case, this is http://trac.assembla.com/astrolib

| downloaded and searched for links of the form <a href=...>. The
| basename (just the part after the final /) of each linked URL is
| compared against the Perl regular expression pattern (see perlre(1))
| gentoo-(.+)\.tar\.gz. Out of the files that match, the one with the
^^^^^^^^^^^^^^^^^^^^
in my case, this is pywcs-(.+)-.+\.tar\.gz



Contrary to maint-guide's claim, the pattern needs to match the entire
contents of the href="..." attribute:

The pattern (after the final slash) is a Perl regexp (see perlre(1)
for details of these). You need to make the pattern so tight that it
matches only the upstream software you are interested in and nothing
else. Also, the pattern will be anchored at the beginning and at the
end, so it must match the full filename.

Please file a bug against maint-guide.

| greatest version number is downloaded and the uupdate program is run
| to create an updated source tree.

However, "uscan" always tells me "no matching hrefs for watch line"?
What do I wrong here, and how could the problems be solved?



If you want to match just the basename of the href, you can use a
pattern like ".*/name-(.*)\.tar\.gz" if you know that there is a full
URL, or better still: "(?:.*/)?name-(.*)\.tar\.gz" if there may or may
not be. Note the use of (?:...) to avoid making a backreference.

You need to split URL and pattern in two fields for this to work.

Regards,
Ansgar


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/

Similar topics