Your message dated Thu, 12 Mar 2015 23:59:45 -0400
with message-id <[email protected]>
and subject line Re: Bug#775735: [PATCH] Parse sourceforge rss feeds, without 
sf.net redirector.
has caused the Debian Bug report #775735,
regarding [PATCH] Parse sourceforge rss feeds, without sf.net redirector.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
775735: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775735
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Version: 2.15.1
Tags: patch

Example watchfile:
version=3
http://sourceforge.net/projects/pcre/rss?limit=500 .*/pcre-(.*).tar.gz

uscan --report --watchfile watch --package pcre --upstream-version 8.36

Idea taken from "anitya" project.

Signed-off-by: Dimitri John Ledkov <[email protected]>
---
 scripts/uscan.pl | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index bd1a851..c22719a 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -985,12 +985,21 @@ sub process_watchline ($$$$$$)
        print STDERR "$progname debug: received content:\n$content\[End of 
received content]\n"
            if $debug;
 
-       if ($content =~ m%^<[?]xml%i &&
-           $content =~ m%xmlns="http://s3.amazonaws.com/doc/2006-03-01/"%) {
-           # this is an S3 bucket listing.  Insert an 'a href' tag
-           # into the content for each 'Key', so that it looks like html (LP: 
#798293)
-           print STDERR "$progname debug: fixing s3 listing\n" if $debug;
-           $content =~ s%<Key>([^<]*)</Key>%<Key><a href="$1">$1</a></Key>%g
+       if ($content =~ m%^<[?]xml%i) {
+
+           if ($content =~ m%xmlns="http://s3.amazonaws.com/doc/2006-03-01/"%) 
{
+               # this is an S3 bucket listing.  Insert an 'a href' tag
+               # into the content for each 'Key', so that it looks like html 
(LP: #798293)
+               print STDERR "$progname debug: fixing s3 listing\n" if $debug;
+               $content =~ s%<Key>([^<]*)</Key>%<Key><a 
href="$1">$1</a></Key>%g
+           }
+
+           if ($content =~ 
m%xmlns:sf="https://sourceforge.net/api/sfelements.rdf#"%) {
+               # this is sourceforge.net xml listing. Insert an 'a href' tag
+               # into the content for each 'link', so that is looks like html
+               print STDERR "$progname debug: fixing sf listing\n" if $debug;
+               $content =~ s%<link>([^<]*)/download</link>%<link><a 
href="$1">$1</a></link>%g
+           }
        }
 
        # We need this horrid stuff to handle href=foo type
-- 
2.1.0

--- End Message ---
--- Begin Message ---
On Sun, Jan 25, 2015 at 12:56:45PM -0500, James McCoy wrote:
> On Mon, Jan 19, 2015 at 11:48:48AM +0000, Dimitri John Ledkov wrote:
> > Example watchfile:
> > version=3
> > http://sourceforge.net/projects/pcre/rss?limit=500 .*/pcre-(.*).tar.gz
> 
> I'm pretty sure the SF redirector uses the RSS file.

Just confirmed that it does.

> The implementation for getting information from SF has changed various
> times over the years, so I'm not sure moving the implementation to every
> watch file makes sense.

Therefore I'm closing this request as per the above.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

Attachment: signature.asc
Description: Digital signature


--- End Message ---
_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to