HTML list: get source from recipe, not package name

This commit is contained in:
Steve Purcell 2013-04-16 20:58:02 +01:00
parent 4b6e9d1eb2
commit 06e9e3dd3d

View file

@ -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 =