[Collab-qa-commits] r924 - bapase
lucas at alioth.debian.org
lucas at alioth.debian.org
Wed Jul 23 21:15:17 UTC 2008
Author: lucas
Date: 2008-07-23 21:15:15 +0000 (Wed, 23 Jul 2008)
New Revision: 924
Modified:
bapase/bugs_rm_pkgs.rb
Log:
Fixed a dirty bug in bugs_rm_pkgs.rb. (drop \n from packages names)
Thanks to Marco Rodrigues for noticing this.
Modified: bapase/bugs_rm_pkgs.rb
===================================================================
--- bapase/bugs_rm_pkgs.rb 2008-07-23 18:02:47 UTC (rev 923)
+++ bapase/bugs_rm_pkgs.rb 2008-07-23 21:15:15 UTC (rev 924)
@@ -66,9 +66,9 @@
f.each do |s|
IO::read(s).each_line do |l|
if l =~ /^Package: /
- srcs[l.split(' ')[1]] = true
+ srcs[l.chomp.split(' ')[1]] = true
elsif l =~ /^Binary: /
- l.split(' ',2)[1].split(/, /).each do |b|
+ l.chomp.split(' ',2)[1].split(/, /).each do |b|
bins[b] = true
end
end
@@ -81,9 +81,9 @@
f.each do |s|
IO::read(s).each_line do |l|
if l =~ /^Package: /
- stablesrcs[l.split(' ')[1]] = true
+ stablesrcs[l.chomp.split(' ')[1]] = true
elsif l =~ /^Binary: /
- l.split(' ',2)[1].split(/, /).each do |b|
+ l.chomp.split(' ',2)[1].split(/, /).each do |b|
stablebins[b] = true
end
end
More information about the Collab-qa-commits
mailing list