aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2008-08-04 17:05:04 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2008-08-04 17:16:02 +0200
commitdddf5ce3ce151414552dfe0c6af2fa3aed12ea44 (patch)
tree64b6c5fd8d2537dc8522ee2a3c40d97910e862f4
parent8788d8f54896ebbbd11411c8320e2ce65db026c1 (diff)
downloadpaludis-dddf5ce3ce151414552dfe0c6af2fa3aed12ea44.tar.gz
paludis-dddf5ce3ce151414552dfe0c6af2fa3aed12ea44.tar.xz
(ruby) Set $envspec to "", so we don't get a traceback when checking $envspec.empty? later.
-rwxr-xr-xruby/demos/playman.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby/demos/playman.rb b/ruby/demos/playman.rb
index 6180b92..9ed3926 100755
--- a/ruby/demos/playman.rb
+++ b/ruby/demos/playman.rb
@@ -45,6 +45,7 @@ opts = GetoptLong.new(
[ '--no-names-cache', GetoptLong::NO_ARGUMENT ],
[ '--no-write-cache', GetoptLong::NO_ARGUMENT ])
+$envspec = ""
$mode = ""
$names_cache = true
$write_cache = true
@@ -113,7 +114,7 @@ HELP
end
end
-$env = EnvironmentMaker.instance.make_from_spec($envspec || "")
+$env = EnvironmentMaker.instance.make_from_spec($envspec)
if $env.format_key.value != "paludis" then
$stderr.puts "#$0: --environment must specify class 'paludis'"
exit 1