diff options
| -rw-r--r-- | Library/Formula/mutt.rb | 26 |
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 |
