Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offlinework #2019

Merged
merged 3 commits into from
Jun 14, 2020
Merged

Offlinework #2019

merged 3 commits into from
Jun 14, 2020

Conversation

The-going
Copy link
Contributor

@The-going The-going commented Jun 13, 2020

New ability to work in offline mode

  • Delete FORCE_CHECKOUT, IGNORE_UPDATES variables
  • Working offline for sources
  • Skip check prepare host
  • Add unset OFFLINE_WORK in lib/build-all-ng.sh

Sources, time and host will not be checked
Now you can collect packages without accessing the Internet

AR-313

There are currently two questionable variables.
They are the keys in the structures:
'if [[ $FORCE_CHECKOUT == yes ]]; then' in the function 'fetch_from_repo()'
which is set by default by the script 'main.sh'
'[[ -z $FORCE_CHECKOUT ]] && FORCE_CHECKOUT=yes'

Next in the script 'main.sh'

if [[ $IGNORE_UPDATES != yes ]]; then
    display_alert "Downloading sources" "" "info"
    fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"

This key has aged. It can't work properly today.
We should always clear the sources before starting the build.
For this reason, these two keys in these places do not make any sense.
You can just delete them.
This is useful when building recursively for multiple platforms,
when some resource on the Internet is frozen.
To do this, I entered a new variable 'OFFLINE_WORK'
* Skip check prepare host
* Add unset OFFLINE_WORK in lib/build-all-ng.sh

Sources, time and host will not be checked
Now you can collect packages without accessing the Internet
@The-going
Copy link
Contributor Author

PR for the documentation

@igorpecovnik igorpecovnik merged commit dcc6e79 into armbian:master Jun 14, 2020
@The-going The-going deleted the offlinework branch June 24, 2020 16:11
useful64 pushed a commit to useful64/build that referenced this pull request Feb 4, 2022
* Delete FORCE_CHECKOUT, IGNORE_UPDATES variables

There are currently two questionable variables.
They are the keys in the structures:
'if [[ $FORCE_CHECKOUT == yes ]]; then' in the function 'fetch_from_repo()'
which is set by default by the script 'main.sh'
'[[ -z $FORCE_CHECKOUT ]] && FORCE_CHECKOUT=yes'

Next in the script 'main.sh'

if [[ $IGNORE_UPDATES != yes ]]; then
    display_alert "Downloading sources" "" "info"
    fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"

This key has aged. It can't work properly today.
We should always clear the sources before starting the build.
For this reason, these two keys in these places do not make any sense.
You can just delete them.

* Working offline for sources

This is useful when building recursively for multiple platforms,
when some resource on the Internet is frozen.
To do this, I entered a new variable 'OFFLINE_WORK'

* New ability to work in offline mode

* Skip check prepare host
* Add unset OFFLINE_WORK in lib/build-all-ng.sh

Sources, time and host will not be checked
Now you can collect packages without accessing the Internet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants