mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-22 21:54:00 +02:00
* Updated liblastfm2 to latest snapshot.
This commit is contained in:
8
thirdparty/liblastfm2/admin/utils.rb
vendored
8
thirdparty/liblastfm2/admin/utils.rb
vendored
@@ -1,13 +1,7 @@
|
||||
cwd = File.dirname( __FILE__ )
|
||||
require "#{cwd}/platform.rb"
|
||||
|
||||
def h(s, n)
|
||||
case Platform::IMPL
|
||||
when :mswin
|
||||
puts '==> '+s
|
||||
else
|
||||
puts "\033[0;#{n}m==>\033[0;0;1m #{s} \033[0;0m"
|
||||
end
|
||||
end
|
||||
|
||||
def h1 s
|
||||
@@ -37,4 +31,4 @@ def pkgconfig pkg, prettyname
|
||||
system "pkg-config --exists '#{pkg}'"
|
||||
raise PkgConfigNotFound if $? == 127
|
||||
raise PkgNotFound.new(prettyname) if $? != 0
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user