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

Re: [RFC] fixing sourceforge watch files



[I suspect most of my fellow devscripts maintainers read -qa, but CCing
the team list just in case]

On Tue, 2008-06-17 at 17:50 +0200, Filippo Giunchedi wrote:
> Hi,
> we have had a little trouble with our sf redirector a while back (i.e. the
> sf mirror was down) and it is really annoying.
> Anyhow, I noticed that there are now direct links with http 302 redirection
> towards a mirror, without the ugly selection page!
[...]
> I'm attaching a quick patch to uscan(1) to give some instructions on how to
> produce a working watch file, hopefully to get rid of the hacky redirector.

I've attached a revised patch incorporating the comments from the thread
so far. If anyone has any objections or suggestions for further changes
to the text please let me know; if not I'll commit it over the next day
or so.

Cheers,

Adam
Index: scripts/uscan.1
===================================================================
--- scripts/uscan.1	(revision 1502)
+++ scripts/uscan.1	(working copy)
@@ -68,20 +68,19 @@
   Twisted-([\\d\\.]*)\\.tar\\.bz2
 http://tmrc.mit.edu/mirror/twisted/Twisted/(\\d\.\\d)/Twisted-([\\d\\.]*)\\.tar\\.bz2
 
-# If your package is located on sourceforge, use one of the following
-# formats to automatically use the qa.debian.org redirector, avoiding
-# SF's difficult mirror system.
-http://sf.net/audacity/audacity-src-(.+)\\.tar\\.gz
+# If your package is located on SourceForge, you can use the following
+# format. Note that the trailing .* is required.
+http://sourceforge.net/projects/audacity/files \\ 
+  http://downloads.sourceforge.net/.+/audacity-src-(.+)\\.tar\\.gz\\.*
 
+# qa.debian.org runs a redirector which allows a simpler form of URL
+# for SourceForge based projects. The format below will automatically
+# be rewritten to use the redirector. Note that the format in the
+# previous example, whilst slightly more complicated, is recommended
+# instead of this one as it does not rely on a particular SourceForge
+# mirror being available
 http://sf.net/audacity/ audacity-src-(.+)\\.tar\\.gz
 
-# If the qa.debian.org redirector does not produce any results for
-# your sourceforge-hosted project, you can use the following format
-# to check for new versions.  Note that it does not seem to be
-# possible to download the files via this method.
-ftp://upload.sourceforge.net/pub/sourceforge/a/au/audacity/ \\
-  audacity-src-([\\d\\.]+)\\.tar\\.(gz|bz2)
-
 # This is the format for a site which has funny version numbers;
 # the parenthesised groups will be joined with dots to make a
 # sanitised version number

Reply to: