aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-07-02 16:42:57 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2008-07-02 16:42:57 +0100
commit7a6672386eac9b3256ebeb447ae44ae6956c4bdd (patch)
treee0dd55502677958e283437f2dd1d9f93e21f8e48
parentcb504ebd97533082cf803c94b638e5b646c19567 (diff)
downloadpaludis-7a6672386eac9b3256ebeb447ae44ae6956c4bdd.tar.gz
paludis-7a6672386eac9b3256ebeb447ae44ae6956c4bdd.tar.xz
(ruby) Remove some ancient cruft from playman.rb
-rwxr-xr-xruby/demos/playman.rb20
1 files changed, 3 insertions, 17 deletions
diff --git a/ruby/demos/playman.rb b/ruby/demos/playman.rb
index e92aaff..2e9c45a 100755
--- a/ruby/demos/playman.rb
+++ b/ruby/demos/playman.rb
@@ -45,8 +45,6 @@ opts = GetoptLong.new(
[ '--no-write-cache', GetoptLong::NO_ARGUMENT ])
$mode = ""
-$config_suffix = ""
-$environment = ""
$names_cache = true
$write_cache = true
@@ -98,20 +96,9 @@ HELP
exit 1
end
when '--environment'
- $environment = arg
- if Paludis.const_defined?(:EnvironmentMaker) then
- $envspec = arg
- else
- $stderr.puts "#$0: --environment needs >= Paludis 0.21"
- exit 1
- end
+ $envspec = arg
when '--config-suffix'
- $config_suffix = arg
- if Paludis.const_defined?(:EnvironmentMaker) then
- $envspec = ":#{arg}"
- else
- Paludis::DefaultConfig.config_suffix = arg
- end
+ $envspec = "paludis:#{arg}"
when '--list'
$mode="list"
@@ -239,8 +226,7 @@ when 'add'
puts
puts "You should now run:"
print " paludis"
- print " -c #{$config_suffix}" unless $config_suffix.empty?
- print " -E #{$environment}" unless $environment.empty?
+ print " -E #{$envspec}" unless $envspec.empty?
print " -s x-#{overlay_name} \n"
end
end