aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-08-12 20:29:17 +0100
committerAvatar Richard Brown <rbrown@exherbo.org> 2008-08-12 20:30:35 +0100
commitf47542b80c9cc84432b0006d5ef53f4988fe546d (patch)
treeec33c1468c323d4b98437d79d3052515de158482
parent5ef2a0f00a7b93a6ac6088ac34d9744a6fabec1c (diff)
downloadpaludis-f47542b80c9cc84432b0006d5ef53f4988fe546d.tar.gz
paludis-f47542b80c9cc84432b0006d5ef53f4988fe546d.tar.xz
(ruby) Fix demos EnvironmentMaker -> EnvironmentFactory
-rwxr-xr-xruby/demos/find_unmanaged_files.rb2
-rwxr-xr-xruby/demos/find_unused_distfiles.rb2
-rwxr-xr-xruby/demos/playman.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/ruby/demos/find_unmanaged_files.rb b/ruby/demos/find_unmanaged_files.rb
index f0cfa1f..f9bd550 100755
--- a/ruby/demos/find_unmanaged_files.rb
+++ b/ruby/demos/find_unmanaged_files.rb
@@ -76,7 +76,7 @@ opts.each do | opt, arg |
end
end
-env = Paludis::EnvironmentMaker.instance.make_from_spec env_spec
+env = Paludis::EnvironmentFactory.instance.create env_spec
db = env.package_database
root = env.root[-1] == ?/ ? env.root.chop : env.root
diff --git a/ruby/demos/find_unused_distfiles.rb b/ruby/demos/find_unused_distfiles.rb
index 958929e..1e8241a 100755
--- a/ruby/demos/find_unused_distfiles.rb
+++ b/ruby/demos/find_unused_distfiles.rb
@@ -128,7 +128,7 @@ if mirror_repository then
Paludis::URIManualOnlyLabel => true,
}
else
- env = Paludis::EnvironmentMaker.instance.make_from_spec(env_spec || "")
+ env = Paludis::EnvironmentFactory.instance.create(env_spec || "")
relevant_packages = Paludis::Generator::All.new | Paludis::Filter::SupportsAction.new(Paludis::InstalledAction)
$check_condition = lambda { | spec | spec.condition_met? }
$banned_labels = { }
diff --git a/ruby/demos/playman.rb b/ruby/demos/playman.rb
index 9ed3926..a7ad041 100755
--- a/ruby/demos/playman.rb
+++ b/ruby/demos/playman.rb
@@ -114,7 +114,7 @@ HELP
end
end
-$env = EnvironmentMaker.instance.make_from_spec($envspec)
+$env = EnvironmentFactory.instance.create($envspec)
if $env.format_key.value != "paludis" then
$stderr.puts "#$0: --environment must specify class 'paludis'"
exit 1