aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-07-31 14:58:26 -0700
committerAdam Vandenberg2011-07-31 14:58:26 -0700
commit2f2e05ab9c901df62c6e414ab0a2253ca23848c3 (patch)
treea9229ccb6b0cdf34168c706772b42c3b06232937
parentb747af4aed7df0acd98ab9019c4d0f60f29eea09 (diff)
downloadhomebrew-2f2e05ab9c901df62c6e414ab0a2253ca23848c3.tar.bz2
mutt: clean up patch system
-rw-r--r--Library/Formula/mutt.rb26
1 files changed, 10 insertions, 16 deletions
diff --git a/Library/Formula/mutt.rb b/Library/Formula/mutt.rb
index d9d7cf1c3..c653e5f8c 100644
--- a/Library/Formula/mutt.rb
+++ b/Library/Formula/mutt.rb
@@ -20,24 +20,18 @@ class Mutt < Formula
end
def patches
- p = []
-
- if ARGV.include? '--sidebar-patch'
- p << 'https://raw.github.com/nedos/mutt-sidebar-patch/master/mutt-sidebar.patch'
- end
-
- if ARGV.include? '--trash-patch'
- p << 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features/trash-folder'
- end
-
- if ARGV.include? '--ignore-thread-patch'
- p << 'http://ben.at.tanjero.com/patches/ignore-thread-1.5.21.patch'
- end
+ urls = [
+ ['--sidebar-patch', 'https://raw.github.com/nedos/mutt-sidebar-patch/master/mutt-sidebar.patch'],
+ ['--trash-patch', 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features/trash-folder'],
+ ['--ignore-thread-patch', 'http://ben.at.tanjero.com/patches/ignore-thread-1.5.21.patch'],
+ ['--pgp-verbose-mime-patch',
+ 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features-old/patch-1.5.4.vk.pgp_verbose_mime'],
+ ]
- if ARGV.include? '--pgp-verbose-mime-patch'
- p << 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features-old/patch-1.5.4.vk.pgp_verbose_mime'
+ p = []
+ urls.each do |u|
+ p << u[1] if ARGV.include? u[0]
end
-
return p
end