[前][次][番号順一覧][スレッド一覧]

ruby-changes:67395

From: Nobuyoshi <ko1@a...>
Date: Tue, 31 Aug 2021 19:00:57 +0900 (JST)
Subject: [ruby-changes:67395] defdfa020a (master): Exit with the syncing status [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=defdfa020a

From defdfa020a5e30da132280f2ec16eb87d62cfc73 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 31 Aug 2021 19:00:04 +0900
Subject: Exit with the syncing status [ci skip]

---
 tool/sync_default_gems.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 82d372d..41d6d1d 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -468,7 +468,9 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L468
   unless failed_commits.empty?
     puts "---- failed commits ----"
     puts failed_commits
+    return false
   end
+  return true
 end
 
 def sync_lib(repo, upstream = nil)
@@ -577,9 +579,9 @@ else https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L579
   end
   gem = ARGV.shift
   if ARGV[0]
-    sync_default_gems_with_commits(gem, ARGV, edit: edit)
+    exit sync_default_gems_with_commits(gem, ARGV, edit: edit)
   elsif auto
-    sync_default_gems_with_commits(gem, true, edit: edit)
+    exit sync_default_gems_with_commits(gem, true, edit: edit)
   else
     sync_default_gems(gem)
   end
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]