aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-30 09:57:34 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-30 09:57:34 +0000
commitbdf481622dfcbd0738c559942b7ea75b1b3b29b2 (patch)
tree928672e3b1e4c120afb2ca052caa87c0c53fa549
parent018b3eec707251446d97f6e67a2ef3be4a962c83 (diff)
downloadpaludis-bdf481622dfcbd0738c559942b7ea75b1b3b29b2.tar.gz
paludis-bdf481622dfcbd0738c559942b7ea75b1b3b29b2.tar.xz
(ruby) Use the last label instead of the first.
-rwxr-xr-xruby/demos/find_unused_distfiles.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/demos/find_unused_distfiles.rb b/ruby/demos/find_unused_distfiles.rb
index 88db5f4..4719eb1 100755
--- a/ruby/demos/find_unused_distfiles.rb
+++ b/ruby/demos/find_unused_distfiles.rb
@@ -155,7 +155,7 @@ def collect_filenames(parts, id, label, spec)
parts[spec.filename] = true unless $banned_labels[label[0]]
when Paludis::URILabelsDepSpec
- label[0] = spec.labels[0].class
+ label[0] = spec.labels.last.class
else
raise "Unexpected DepSpec class #{spec.class} in #{id}"