diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-08-06 20:56:20 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-08-06 20:56:20 +0000 |
commit | 77501eb721fd07ecd9686f5188fb0f0b2cdac07b (patch) | |
tree | 32d92a775e662a9782e3ca394504e0dd0be5fdce | |
parent | Allow local lookups for GLSA. (diff) | |
download | rbot-gentoo-77501eb721fd07ecd9686f5188fb0f0b2cdac07b.tar.gz rbot-gentoo-77501eb721fd07ecd9686f5188fb0f0b2cdac07b.tar.bz2 rbot-gentoo-77501eb721fd07ecd9686f5188fb0f0b2cdac07b.zip |
Fix earch output.
-rw-r--r-- | gentoo-data.rb | 3 |
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 |