Skip to content

Commit

Permalink
fixup! Support the use of additional APT repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdor committed May 12, 2024
1 parent 96fa8a9 commit da63209
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ Optional and empty by default.

#### `extra-repos`
Extra APT repositories to configure as sources in the build environment.
Entries must be given in the “one-line-style format”, see

Entries can be given in either format supported by APT: one-line style or
deb822 style, see
[`man sources.list`](https://manpages.debian.org/sources.list.5).

Optional and empty by default.
Expand Down
7 changes: 6 additions & 1 deletion scripts/install_build_deps
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ fi
# essential packages. It is reasonably safe to blindly assume it is installed.
printf "man-db man-db/auto-update boolean false\n" | debconf-set-selections

printf "%s\n" "$INPUT_EXTRA_REPOS" >/etc/apt/sources.list.d/build-deb-action.list
if printf "%s\n" "$INPUT_EXTRA_REPOS" | grep -q '^deb'; then
extra_repos_ext=.list
else
extra_repos_ext=.sources
fi
printf "%s\n" "$INPUT_EXTRA_REPOS" >"/etc/apt/sources.list.d/build-deb-action${extra_repos_ext}"

apt-get update

Expand Down

0 comments on commit da63209

Please sign in to comment.