mirror of
https://github.com/correl/melpa.git
synced 2024-11-14 19:19:32 +00:00
Link directly to bitbucket repos where applicable
This commit is contained in:
parent
da48d14bd4
commit
d73b380e0f
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
|||
case package.source
|
||||
when 'github' then recipe['repo'].include?('/') ? "https://github.com/#{recipe['repo']}" : "https://gist.github.com/#{recipe['repo']}"
|
||||
when 'wiki' then recipe.key?('files') ? nil : "http://www.emacswiki.org/emacs/#{package.name}.el"
|
||||
when 'hg' then
|
||||
if recipe['url'] =~ /(bitbucket\.org\/[^\/]+\/[^\/\?]+)/
|
||||
"https://" + $1
|
||||
end
|
||||
end
|
||||
package
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue