[paludis-commits] paludis.git (master) -- dddf5ce by Ingmar Vanhassel
git at git.pioto.org
git at git.pioto.org
Mon Aug 4 11:19:23 EDT 2008
Module: paludis.git
Branch: master
Commit: dddf5ce3ce151414552dfe0c6af2fa3aed12ea44
URL: http://git.pioto.org/?p=paludis.git;a=commit;h=dddf5ce3ce151414552dfe0c6af2fa3aed12ea44
Author: Ingmar Vanhassel <ingmar at exherbo.org>
Committer: Ingmar Vanhassel <ingmar at exherbo.org>
Date: Mon Aug 4 17:05:04 2008 +0200
----
(ruby) Set $envspec to "", so we don't get a traceback when checking $envspec.empty? later.
----
ruby/demos/playman.rb | 3 ++-
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
---
More information about the paludis-commits
mailing list