Skip to content

Commit

Permalink
az-repo-apt-add: extract build_local_repo() as separate function
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Aug 30, 2024
1 parent de3ec5b commit 00fc988
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions az-repo-apt-add
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ download_existing_repo()
--file "$REPO_DIR/dists/stable/main/binary-all/Packages.gz"
}

build_local_repo()
{
echo "## Building local repo"

export REPO_DIR
export PKGS_SRC
"$SCRIPT_DIR/repo-apt-handle"
}

upload_repo()
{
echo "## Uploading repo"
Expand All @@ -49,9 +58,5 @@ upload_repo()

show_summary_info
download_existing_repo || :

export REPO_DIR
export PKGS_SRC
"$SCRIPT_DIR/repo-apt-handle"

build_local_repo
upload_repo

0 comments on commit 00fc988

Please sign in to comment.