[input] Error: Unknown repo: 'powertools'
[output] unknown-repo.powertools: 1
Signed-off-by: Bai Jing 799286817@qq.com --- stats/openeuler_docker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/stats/openeuler_docker b/stats/openeuler_docker index f85c9ca63..b3890f568 100755 --- a/stats/openeuler_docker +++ b/stats/openeuler_docker @@ -9,9 +9,15 @@ while (line = STDIN.gets) # Error: Unable to find a match: docker-registry when /Error: Unable to find a match: (.+)/ $1.split.each do |repo| - repo_set << repo + repo_set << repo end
+ # Error: Unknown repo: 'powertools' + when /Error: Unknown repo: (.+)/ + repo = $1.delete!("'") + puts "unknown-repo.#{repo}: 1" + puts "unknown-repo.#{repo}.message: #{line}" + # /bin/sh: passwd: command not found when //bin/sh: (.+): command not found/ puts "sh.command-not-found.#{$1}: 1"
--- a/stats/openeuler_docker +++ b/stats/openeuler_docker @@ -9,9 +9,15 @@ while (line = STDIN.gets) # Error: Unable to find a match: docker-registry when /Error: Unable to find a match: (.+)/ $1.split.each do |repo|
case the $1 is in a format as: docker-registry line: $1.split.each do |repo| is useless, use: repo_set << $1
repo_set << repo
repo_set << repo
it seems that the two line above are the same.
Thanks, Luan Shengde
end
- # Error: Unknown repo: 'powertools'
- when /Error: Unknown repo: (.+)/
- repo = $1.delete!("'")
- puts "unknown-repo.#{repo}: 1"
- puts "unknown-repo.#{repo}.message: #{line}"
- # /bin/sh: passwd: command not found when //bin/sh: (.+): command not found/ puts "sh.command-not-found.#{$1}: 1"
-- 2.23.0
On Wed, Mar 10, 2021 at 02:36:42PM +0800, Luan Shengde wrote:
--- a/stats/openeuler_docker +++ b/stats/openeuler_docker @@ -9,9 +9,15 @@ while (line = STDIN.gets) # Error: Unable to find a match: docker-registry when /Error: Unable to find a match: (.+)/ $1.split.each do |repo|
case the $1 is in a format as: docker-registry line: $1.split.each do |repo| is useless, use: repo_set << $1
the error message may contains multiple repo messages. Like this Error: Unable to find a match: docker-registry mock xx
Thanks, Baijing
repo_set << repo
repo_set << repo
it seems that the two line above are the same.
Thanks, Luan Shengde
end
- # Error: Unknown repo: 'powertools'
- when /Error: Unknown repo: (.+)/
- repo = $1.delete!("'")
- puts "unknown-repo.#{repo}: 1"
- puts "unknown-repo.#{repo}.message: #{line}"
- # /bin/sh: passwd: command not found when //bin/sh: (.+): command not found/ puts "sh.command-not-found.#{$1}: 1"
-- 2.23.0