You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/04/04 20:22:53 UTC

[arrow] branch master updated: ARROW-16107: [Dev][Archery] Fix archery crossbow latest-prefix query

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ebe62421b ARROW-16107: [Dev][Archery] Fix archery crossbow latest-prefix query
1ebe62421b is described below

commit 1ebe62421bce3d839e27715e0801e43c101a4b9b
Author: Joris Van den Bossche <jo...@gmail.com>
AuthorDate: Tue Apr 5 05:22:40 2022 +0900

    ARROW-16107: [Dev][Archery] Fix archery crossbow latest-prefix query
    
    Closes #12785 from jorisvandenbossche/ARROW-16107
    
    Authored-by: Joris Van den Bossche <jo...@gmail.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/archery/archery/crossbow/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev/archery/archery/crossbow/core.py b/dev/archery/archery/crossbow/core.py
index fa4500d595..c41582ad40 100644
--- a/dev/archery/archery/crossbow/core.py
+++ b/dev/archery/archery/crossbow/core.py
@@ -559,7 +559,7 @@ class Queue(Repo):
         return '{}-{}'.format(prefix, latest_id + 1)
 
     def latest_for_prefix(self, prefix):
-        if prefix == "nightly":
+        if prefix.startswith("nightly"):
             latest_id = self._latest_prefix_date(prefix)
             if not latest_id:
                 raise RuntimeError(