Skip to content

Commit

Permalink
get-fedora-latest-config: allow fetching config from rawhide repository
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed Mar 15, 2019
1 parent 924b8ab commit b935b16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion get-fedora-latest-config
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fi

localdir="$(dirname "$(readlink -f "$0")")"
releasever="$1"
testing="$2"

kernelver="$(cat "$localdir/version")"
kernelsrc="linux-$kernelver"
Expand All @@ -16,7 +17,11 @@ key="$localdir/keys/RPM-GPG-KEY-fedora-$releasever-primary"
[[ "x$releasever" == "x" ]] && { echo "Please provide Fedora release version as first argument, e.g. '29'."; exit 1; }

# baseurl for latest kernel rpm
url="https://dl.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/x86_64/Packages/k"
if [ "$testing" == "1" ]; then
url="https://dl.fedoraproject.org/pub/fedora/linux/development/$releasever/Everything/x86_64/os/Packages/k"
else
url="https://dl.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/x86_64/Packages/k"
fi

# get the latest kernel rpm
content="$(curl "$url/")"
Expand Down

0 comments on commit b935b16

Please sign in to comment.