Skip to content

HTTP 302 recipe download file #573

@brussee

Description

@brussee

Downloading from sourceforge autoselecting an mirror results in a HTTP 302 instead of a direct download.
Trying to build this clean recipe below results in:

RAN: '/bin/tar xzf ~/.local/share/python-for-android/packages/boost/boost_1_58_0.tar.gz'
  STDOUT:
  STDERR:
gzip: stdin: not in gzip format
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now

Because this .tar.gz file is in reality the 302 HTML (ASCII) page.

from pythonforandroid.toolchain import Recipe, shprint, shutil, current_directory
from os.path import exists, join

class BoostRecipe(Recipe):
    version = '1.58.0'
    url = 'http://downloads.sourceforge.net/project/boost/boost/{version}/boost_1_58_0.tar.gz'

recipe = BoostRecipe()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions