aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-03-06 17:05:13 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-03-06 17:05:13 +0000
commit888df33f24f8500543ccf98f60434c0295ced325 (patch)
treeb5b603a46d00539e2c577e9423b3308a93f62235
parente137a616ba1066983b8d14c1a39e2ccc20ed2959 (diff)
downloadpaludis-888df33f24f8500543ccf98f60434c0295ced325.tar.gz
paludis-888df33f24f8500543ccf98f60434c0295ced325.tar.xz
Fix check_linkage.
-rw-r--r--ruby/demos/check_linkage.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/ruby/demos/check_linkage.rb b/ruby/demos/check_linkage.rb
index 6dc0876..37a69e3 100644
--- a/ruby/demos/check_linkage.rb
+++ b/ruby/demos/check_linkage.rb
@@ -137,23 +137,23 @@ end
status "Finding merge targets"
-atoms = broken.map do | owner |
+specs = broken.map do | owner |
slot = env.package_database.fetch_repository(owner.repository).version_metadata(owner.name, owner.version).slot
- Paludis::PackageDepAtom.new("=" + owner.name + "-" + owner.version.to_s + ":" + slot)
+ Paludis::PackageDepSpec.new("=" + owner.name + "-" + owner.version.to_s + ":" + slot)
end
-if atoms.empty?
+if specs.empty?
status "Couldn't find any owners"
exit 0
end
status "Building dependency list"
-system("paludis --pretend --install #{atoms.join ' '} --dl-upgrade as-needed --preserve-world") or exit 1
+system("paludis --pretend --install #{specs.join ' '} --dl-upgrade as-needed --preserve-world") or exit 1
exit 0 if pretend
status "Rebuilding broken packages"
-system("paludis --install #{atoms.join ' '} --dl-upgrade as-needed --preserve-world")
+system("paludis --install #{specs.join ' '} --dl-upgrade as-needed --preserve-world")