Skip to content
Browse files

Oops, stringify the ppa spec before calling #sub on it.

  • Loading branch information...
1 parent 8666288 commit 7bf102f2ff840442687694a05242709e2fee0383 @benhoskings committed Sep 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 deps/apt.rb
2 deps/apt.rb
@@ -23,7 +23,7 @@ def present_in_file? filename
requires 'python-software-properties.bin'
def spec_name
log_error("'#{spec}' doesn't look like 'ppa:something'.") unless spec[/^ppa\:\w+/]
- spec.sub(/^ppa\:/, '')
+ spec.to_s.sub(/^ppa\:/, '')
def ppa_release_file
# This may be hardcoded to some extent, but I'm calling YAGNI on it for now.

0 comments on commit 7bf102f

Please sign in to comment.
Something went wrong with that request. Please try again.