Skip to content

Commit

Permalink
apacheGH-34082: [Packaging][deb] Follow Debian bookworm image change (a…
Browse files Browse the repository at this point in the history
…pache#34091)

### Rationale for this change

Sources file was moved to /etc/apt/sources.list.d/debian.sources from /etc/apt/sources.list.

### What changes are included in this PR?

Follow the change.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#34082

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou committed Feb 9, 2023
1 parent e11ee40 commit 4a5fadb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dev/release/verify-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ have_plasma=yes
have_python=yes
workaround_missing_packages=()
case "${distribution}-${code_name}" in
debian-bookworm)
sed \
-i"" \
-e "s/ main$/ main contrib non-free/g" \
/etc/apt/sources.list.d/debian.sources
;;
debian-*)
sed \
-i"" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ RUN \
echo 'APT::Install-Recommends "false";' > \
/etc/apt/apt.conf.d/disable-install-recommends

RUN sed -i'' -e 's/main$/main contrib non-free/g' /etc/apt/sources.list
RUN \
sed \
-i'' \
-e 's/main$/main contrib non-free/g' \
/etc/apt/sources.list.d/debian.sources

ARG DEBUG
RUN \
Expand Down

0 comments on commit 4a5fadb

Please sign in to comment.