Skip to content

Commit

Permalink
Fix download option
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Dec 23, 2024
1 parent f2bf485 commit 04915ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ if [ -z ${DISK_DEVS} ] \
fi

# Download rpms
download_opts="--skip-broken"
mkdir -p downloads
download_opts="--skip-broken --downloaddir=downloads"
if [ ${FEDORA_MAJOR} -ge 41 ]; then
# Option for dnf5
download_opts="--best"
download_opts="--best --destdir=downloads"
fi
mkdir -p downloads
cat rpms.lock | xargs -n256 dnf download \
${download_opts} \
--arch=${arch} --arch=noarch \
--downloaddir=downloads \
2> >(tee download.err >&2)

# Remove old packages
Expand Down

0 comments on commit 04915ba

Please sign in to comment.