From d9ccbfc38dc837e32b112db256a9fe3b2540a960 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Thu, 9 May 2013 12:31:52 +0100 Subject: [PATCH] Just add "[wiki]" etc to package descriptions, not "[source: wiki]" --- html/index.html.erb | 2 +- package-build.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/index.html.erb b/html/index.html.erb index f4c1aef7..0e71edc7 100644 --- a/html/index.html.erb +++ b/html/index.html.erb @@ -17,7 +17,7 @@ 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 = recipe["fetcher"] - if package.descr =~ /(.*?)(\s*-\*-.*?)?\s*\[source:\s*(\w+)\]\s*/ + if package.descr =~ /(.*?)(\s*-\*-.*?)?\s*\[(\w+)\]\s*/ package.descr = $1 end diff --git a/package-build.el b/package-build.el index 3de4ea29..1a247d91 100644 --- a/package-build.el +++ b/package-build.el @@ -563,7 +563,7 @@ If PKG-INFO is nil, an empty one is created." (let* ((merged (or (copy-sequence pkg-info) (vector name nil "No description available." version)))) (aset merged 0 name) - (aset merged 2 (format "%s [source: %s]" + (aset merged 2 (format "%s [%s]" (aref merged 2) (plist-get config :fetcher))) (aset merged 3 version) merged))