Can make a debian/watch file with a project host in Launchpad ?

Asked by Julien Lavergne

I try to make a debian/watch file for 2 projects in Launchpad to track upstream release, but all my diffrents files fail to scan for new release.
Is it working for Launchpad Project ? Do you have an example of a watch file working ?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Julien Lavergne
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
James Henstridge (jamesh) said :
#1

I haven't tried it yet, but can you do something like this?

  version=3
  https://launchpad.net/$PROJECT/+download foo-(.*).tar.gz

Revision history for this message
Chris Jones (cmsj) said :
#2

James: I'm trying to do the same thing and your scheme didn't work for me with this:

version=3
https://launchpad.net/terminator/+download terminator_(.+)\.tar\.gz

I've been somewhat inconsistent with my tarball names in the past, but there is one that should match that (terminator_0.6.tar.gz)

Revision history for this message
Julien Lavergne (gilir) said :
#3

Thanks for the reply

The classic format doesn't work (that's because I asked :))
I think I try all format, but nothing work.
And the link for my download is more complicated :
https://launchpad.net/awn/0.2/0.2.1/+download/avant-window-navigator-0.2.1.tar

Revision history for this message
James Henstridge (jamesh) said :
#4

I just tried putting together a watch file for bzr-pqm, and the following worked okay:

    version=3
    https://launchpad.net/bzr-pqm/+download https://launchpad.net/bzr-pqm/.*/bzr-pqm-(.+).tar.gz

I then get the following output when running it:

    $ uscan --report-status .
    Processing watchfile line for package bzr-pqm...
    Newest version on remote site is 0.92.0, local version is 0.92.0
     => Package is up to date

Revision history for this message
Julien Lavergne (gilir) said :
#5

Yes! It's work now :)
Thanks a lot :)

Revision history for this message
Julien Lavergne (gilir) said :
#6

Thanks James Henstridge, that solved my question.

Revision history for this message
Julien Lavergne (gilir) said :
#7

After the 1.2.3 release, all watch files are broken (links changed) ...
Anyone found a solution ? All my attempts to rewrite the file was a problem ...

Revision history for this message
Christian Reis (kiko) said :
#8

What links changed?

Revision history for this message
Julien Lavergne (gilir) said :
#9
Revision history for this message
Christian Reis (kiko) said :
#10

Well, I don't actually think the URLs to downloads changed, and even if it did, your regular expression would still work (because ".*" would cover "+download"). There's something else wrong. What does --debug tell you?

Revision history for this message
Christian Reis (kiko) said :
#11

Oh! There was one thing that changed -- the actual download URLs are now HTTP, not HTTPS. So try this:

New watch file (don't work)
https://launchpad.net/screenlets/+download http://launchpad.net/screenlets/trunk/.*/+download/screenlets-(.+).tar.gz

Revision history for this message
Julien Lavergne (gilir) said :
#12

It did not solve my problem ...

...but, switch to http for the second link seems to solve the problem :
https://launchpad.net/screenlets/+download http://launchpad.net/screenlets/.*/screenlets-(.+).tar.gz

Thanks for point this to me :)

Revision history for this message
Christian Reis (kiko) said :
#13

The reason +download doesn't work, btw, is probably because you haven't escaped the +. If you do \+ I bet it works.

Revision history for this message
Savvas Radevic (medigeek) said :
#14

No +download is correct, the link (before the space) tells uscan the website to look for the expression (after the space)

There's a bug if anyone is interested: https://bugs.launchpad.net/launchpad-foundations/+bug/231797