Skip to content

Update download #64

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Update download #64

merged 2 commits into from
Nov 5, 2024

Conversation

donald
Copy link
Contributor

@donald donald commented Nov 4, 2024

  • Allow caller to add authorization header to downloads (e.g. to download from a private repository like mariux64/linux)
  • While we are at it, show the filename without the ".tmp" to the users for easy copy-and-paste to scripts/srcurl

Its nicer to have the filename of the downloaded file in the output, for
example to copy-and-paste it into tools/srcurl.

Move the existing `ls -l` to a point when it already has been renamed
from .tmp to its final name.
When wget is used (by the default bee_download), add options from the
variable BEE_WGET_OPTS to the command line.

This allows the user to add an authorization header, when the file is
pulled from a private repository, for example

    SRCURL[0]="https://github.molgen.mpg.de/api/v3/repos/mariux64/linux/tarball/mariux-$KERNELVERSION-$PKGREVISION mariux-$KERNELVERSION-$PKGREVISION.tar.gz"
    BEE_WGET_OPTS=(--header="Authorization: Bearer $(cat ~/.bee_gh_token)")
@donald donald merged commit 7dec8d4 into master Nov 5, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants