From 06e9e3dd3d72f90a00e0ff249d63e2bd1792c0e7 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Tue, 16 Apr 2013 20:58:02 +0100 Subject: [PATCH] HTML list: get source from recipe, not package name --- html/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/index.html.erb b/html/index.html.erb index 3e40d679..93309518 100644 --- a/html/index.html.erb +++ b/html/index.html.erb @@ -13,9 +13,9 @@ package.version = versions.join('.') package.url = "packages/#{package.name}-#{package.version}." + (package.pkgtype == "single" ? "el" : "tar") package.recipe_url = "https://github.com/milkypostman/melpa/blob/master/recipes/#{package.name}" - package.source = 'unknown' + package.source = recipe["fetcher"] if package.descr =~ /(.*?)(\s*-\*-.*?)?\s*\[source:\s*(\w+)\]\s*/ - package.descr, package.source = $1, $3 + package.descr end package.source_url =