aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-03-07 10:53:38 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-03-07 10:53:38 +0000
commitf23a5ee234120f82456569918084a77998d2193d (patch)
tree5529fcbc854c51ba0a39d35d635937de2de0a5c8
parent4145dff573dcbf077421585bbbfa522864b461f4 (diff)
downloadpaludis-f23a5ee234120f82456569918084a77998d2193d.tar.gz
paludis-f23a5ee234120f82456569918084a77998d2193d.tar.xz
(ruby) Fix find_unused_distfiles.rb.
-rwxr-xr-xruby/demos/find_unused_distfiles.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ruby/demos/find_unused_distfiles.rb b/ruby/demos/find_unused_distfiles.rb
index 4719eb1..871a17c 100755
--- a/ruby/demos/find_unused_distfiles.rb
+++ b/ruby/demos/find_unused_distfiles.rb
@@ -121,7 +121,7 @@ end
if mirror_repository then
env = Paludis::NoConfigEnvironment.new(mirror_repository, write_cache_dir, master_repository_dir)
relevant_packages = Paludis::Query::Repository.new(env.main_repository.name)
- $check_use = lambda { true }
+ $check_condition = lambda { true }
$banned_labels = {
Paludis::URIListedOnlyLabel => true,
Paludis::URILocalMirrorsOnlyLabel => true,
@@ -130,7 +130,7 @@ if mirror_repository then
else
env = Paludis::EnvironmentMaker.instance.make_from_spec(env_spec || "")
relevant_packages = Paludis::Query::SupportsInstalledAction.new
- $check_use = lambda { | spec, id | env.query_use(spec.flag, id) ^ spec.inverse? }
+ $check_condition = lambda { | spec | spec.condition_met? }
$banned_labels = { }
end
@@ -143,8 +143,8 @@ def collect_filenames(parts, id, label, spec)
collect_filenames(parts, id, new_label, item)
end
- when Paludis::UseDepSpec
- if $check_use[spec, id] then
+ when Paludis::ConditionalDepSpec
+ if $check_condition[spec] then
new_label = label.dup
spec.each do | item |
collect_filenames(parts, id, new_label, item)