aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-08-06 20:56:20 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-08-06 20:56:20 +0000
commit77501eb721fd07ecd9686f5188fb0f0b2cdac07b (patch)
tree32d92a775e662a9782e3ca394504e0dd0be5fdce /gentoo-data.rb
parentAllow local lookups for GLSA. (diff)
downloadrbot-gentoo-77501eb721fd07ecd9686f5188fb0f0b2cdac07b.tar.gz
rbot-gentoo-77501eb721fd07ecd9686f5188fb0f0b2cdac07b.tar.bz2
rbot-gentoo-77501eb721fd07ecd9686f5188fb0f0b2cdac07b.zip
Fix earch output.
Diffstat (limited to 'gentoo-data.rb')
-rw-r--r--gentoo-data.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb
index 12bf6ea..787e169 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -286,8 +286,7 @@ class GentooPlugin < Plugin
m.reply "Unable to find package #{cp}"
return
end
- pn = cp.split('/')[-1]
- cp = output[0].split("/#{pn}-")[0]+'/'+pn
+ output[0].gsub!(/^.*#{cp}/,cp)
output.map!{ |l| l.gsub(/^#{cp}-/,'').chomp }
m.reply "#{cp} #{output.join(' ')}"
end