Permalink
Browse files

Use the pacman exit code in PacmanHelper#has_pkg?.

  • Loading branch information...
1 parent ff93c2a commit 26078d7b6aee6ee0d946f114c80f07be32c55666 @benhoskings committed Feb 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/babushka/pkg_helpers/pacman_helper.rb
@@ -9,7 +9,7 @@ def manager_key; :pacman end # How packages should be specified in deps, e.g. "v
private
def has_pkg? pkg_name
- raw_shell("#{pkg_cmd} --query #{pkg_name}").stderr !~ /not found$/
+ shell?("#{pkg_cmd} --query #{pkg_name}")
end
# NOTE By default, Arch has sudo's `tty_tickets` option enabled. This will

0 comments on commit 26078d7

Please sign in to comment.