Skip to content

Commit

Permalink
Undo dyslexia
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoore134 committed Nov 9, 2024
1 parent 550a8fd commit 3286211
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scale_build/bootstrap/bootstrapdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import shutil

from scale_build.clean import clean_packages
from scale_build.utils.manifest import apt_get_base_url, get_manifest
from scale_build.utils.manifest import get_apt_base_url, get_manifest
from scale_build.utils.paths import BUILDER_DIR, CHROOT_BASEDIR, REFERENCE_FILES, REFERENCE_FILES_DIR
from scale_build.utils.run import run

Expand Down Expand Up @@ -46,7 +46,7 @@ def setup_impl(self):

self.add_trusted_apt_key()
apt_repos = get_manifest()['apt-repos']
apt_base_url = apt_get_base_url()
apt_base_url = get_apt_base_url()
self.debootstrap_debian()
self.setup_mounts()

Expand Down
4 changes: 2 additions & 2 deletions scale_build/bootstrap/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import requests
import urllib.parse

from scale_build.utils.manifest import apt_get_base_url, get_manifest
from scale_build.utils.manifest import get_apt_base_url, get_manifest
from scale_build.utils.run import run
from scale_build.utils.paths import CACHE_DIR, HASH_DIR

Expand All @@ -27,7 +27,7 @@ def get_repo_hash(repo_url, distribution):

def get_all_repo_hash():
apt_repos = get_manifest()['apt-repos']
apt_base_url = apt_get_base_url()
apt_base_url = get_apt_base_url()
# Start by validating the main APT repo
all_repo_hash = get_repo_hash(apt_base_url + apt_repos['url'], apt_repos['distribution'])

Expand Down
4 changes: 2 additions & 2 deletions scale_build/image/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import requests

from scale_build.exceptions import CallError
from scale_build.utils.manifest import apt_get_base_url, get_manifest
from scale_build.utils.manifest import get_apt_base_url, get_manifest
from scale_build.utils.run import run
from scale_build.utils.paths import CD_DIR, CD_FILES_DIR, CHROOT_BASEDIR, CONF_GRUB, PKG_DIR, RELEASE_DIR, TMP_DIR
from scale_build.config import TRUENAS_VENDOR
Expand Down Expand Up @@ -134,7 +134,7 @@ def make_iso_file():
with tempfile.NamedTemporaryFile(dir=RELEASE_DIR) as efi_img:
with tempfile.NamedTemporaryFile(suffix='.tar.gz') as f:
apt_repos = get_manifest()['apt-repos']
apt_base_url = apt_get_base_url()
apt_base_url = get_apt_base_url()
r = requests.get(
f'{apt_base_url}{apt_repos["url"]}dists/{apt_repos["distribution"]}'
'/main/installer-amd64/current/images/cdrom/'
Expand Down
4 changes: 2 additions & 2 deletions scale_build/image/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import stat

from scale_build.config import SIGNING_KEY, SIGNING_PASSWORD
from scale_build.utils.manifest import apt_get_base_url, get_manifest
from scale_build.utils.manifest import get_apt_base_url, get_manifest
from scale_build.utils.run import run
from scale_build.utils.paths import CHROOT_BASEDIR, RELEASE_DIR, UPDATE_DIR

Expand Down Expand Up @@ -110,7 +110,7 @@ def install_rootfs_packages_impl():

def get_apt_sources():
apt_repos = get_manifest()['apt-repos']
apt_base_url = apt_get_base_url()
apt_base_url = get_apt_base_url()
apt_sources = [f'deb {apt_base_url}{apt_repos["url"]} {apt_repos["distribution"]} {apt_repos["components"]}']
for repo in apt_repos['additional']:
apt_sources.append(f'deb {apt_base_url}{repo["url"]} {repo["distribution"]} {repo["component"]}')
Expand Down

0 comments on commit 3286211

Please sign in to comment.