Permalink
Browse files

Use the pacman exit code in PacmanHelper#has_pkg?.

  • Loading branch information...
1 parent 548efa5 commit 3e294296cbbf512c40d630fb43d4f10ebe96c101 @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 3e29429

Please sign in to comment.