mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-21 23:57:06 +01:00
Allow offline building - skip package updater if there is no connection (#1841)
This commit is contained in:
committed by
Max Prokhorov
parent
437424aaac
commit
274f71d7d9
@@ -66,9 +66,12 @@ def get_shared_libdeps_dir(section, name):
|
||||
|
||||
|
||||
def ensure_platform_updated():
|
||||
if PIO_PLATFORM.are_outdated_packages():
|
||||
print("updating platform packages", file=sys.stderr)
|
||||
PIO_PLATFORM.update_packages()
|
||||
try:
|
||||
if PIO_PLATFORM.are_outdated_packages():
|
||||
print("updating platform packages", file=sys.stderr)
|
||||
PIO_PLATFORM.update_packages()
|
||||
except Exception:
|
||||
print("Warning: no connection, cannot check for outdated packages", file=sys.stderr)
|
||||
|
||||
|
||||
# latest toolchain is still optional with PIO (TODO: recheck after 2.6.0!)
|
||||
|
||||
Reference in New Issue
Block a user