Skip to content

Apache DataFusion SQL Query Engine

ARROW-2875: [Packaging] Don't attempt to download arrow archive in linux builds

Krisztián Szűcs41fa2cc51fc8
diff --git a/dev/tasks/crossbow.py b/dev/tasks/crossbow.py
index 242323702e..5e4c42c73e 100755
--- a/dev/tasks/crossbow.py
+++ b/dev/tasks/crossbow.py
@@ -446,14 +446,20 @@ def load_tasks_from_config(config_path, task_names, group_names):
@click.option('--config-path', '-c',
type=click.Path(exists=True), default=DEFAULT_CONFIG_PATH,
help='Task configuration yml. Defaults to tasks.yml')
[email protected]('--arrow-version', '-v', default=None,
+ help='Set target version explicitly')
@click.option('--dry-run/--push', default=False,
help='Just display the rendered CI configurations without '
'submitting them')
@click.pass_context
-def submit(ctx, task, group, job_prefix, config_path, dry_run):
+def submit(ctx, task, group, job_prefix, config_path, arrow_version, dry_run):
queue, arrow = ctx.obj['queue'], ctx.obj['arrow']
target = Target.from_repo(arrow)
+ # explicitly set arrow version
+ if arrow_version:
+ target.version = arrow_version
+
# task and group variables are lists, containing multiple values
tasks = {}
task_configs = load_tasks_from_config(config_path, task, group)
diff --git a/dev/tasks/linux-packages/Rakefile b/dev/tasks/linux-packages/Rakefile
index 0336420290..bce23de2ff 100644
--- a/dev/tasks/linux-packages/Rakefile
+++ b/dev/tasks/linux-packages/Rakefile
@@ -41,14 +41,15 @@ class ApacheArrowPackageTask < PackageTask
def define_archive_task
file @archive_name do
- case @version
- when /\A\d+\.\d+\.\d+-rc\d+\z/
- download_rc_archive
- when /\A\d+\.\d+\.\d+\z/
- download_released_archive
- else
- build_archive
- end
+ # case @version
+ # when /\A\d+\.\d+\.\d+-rc\d+\z/
+ # download_rc_archive
+ # when /\A\d+\.\d+\.\d+\z/
+ # download_released_archive
+ # else
+ # build_archive
+ # end
+ build_archive
end
end