aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/euscan/handlers/sourceforge.py')
-rw-r--r--pym/euscan/handlers/sourceforge.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/euscan/handlers/sourceforge.py b/pym/euscan/handlers/sourceforge.py
index 8925a6d..df80863 100644
--- a/pym/euscan/handlers/sourceforge.py
+++ b/pym/euscan/handlers/sourceforge.py
@@ -20,7 +20,8 @@ def scan_url(pkg, url, options):
cp, ver, rev = portage.pkgsplit(pkg.cpv)
- project, filename = re.search("sourceforge.net/(.+)/(.+)", url).groups()
+ project, filename = re.search("sourceforge.net/([^/]+)/(?:.*/)?([^/]+)",
+ url).groups()
base_url = "http://qa.debian.org/watch/sf.php/%s" % project
file_pattern = regex_from_template(
filename.replace(ver, "${PV}")