summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaura Abbott <labbott@fedoraproject.org>2017-06-05 09:24:51 -0700
committerLaura Abbott <labbott@fedoraproject.org>2017-06-05 09:24:51 -0700
commit7e1781f06ad5d61746e58c6af3216bb7d46045d8 (patch)
tree25388c91516ad6724ec84aa41fd72fbb88a9b3be /scripts
parent1950001ca8b67ed95d4a69c6c7bbe2728768e699 (diff)
downloadkernel-7e1781f06ad5d61746e58c6af3216bb7d46045d8.tar.gz
kernel-7e1781f06ad5d61746e58c6af3216bb7d46045d8.tar.xz
kernel-7e1781f06ad5d61746e58c6af3216bb7d46045d8.zip
Update -rc script for new kernel.org behavior
kernel.org is no longer distributing -rc tarballs and we have to generate them oursleves. Update the script to do this.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rawhide-rc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rawhide-rc.sh b/scripts/rawhide-rc.sh
index 5982403e7..40f32a8fe 100755
--- a/scripts/rawhide-rc.sh
+++ b/scripts/rawhide-rc.sh
@@ -19,6 +19,7 @@ fedpkg commit -c
RC=`grep "%global rcrev" kernel.spec| cut -d ' ' -f 3`
RC=$(($RC+1))
BASE=`grep "%define base_sublevel" kernel.spec| cut -d ' ' -f 3`
+OLDBASE=$BASE
# See comment in kernel.spec about the base numbering
BASE=$(($BASE+1))
@@ -28,10 +29,11 @@ mv sources.tmp sources
# Grab the tarball
if [ ! -f patch-4.$BASE-rc$RC.xz ]; then
- wget https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/patch-4.$BASE-rc$RC.xz
+ wget -O patch-4.$BASE-rc$RC https://git.kernel.org/torvalds/p/v4.$BASE-rc$RC/v4.$OLDBASE
if [ ! $? -eq 0 ]; then
exit 1
fi
+ xz -9 patch-4.$BASE-rc$RC
fedpkg upload patch-4.$BASE-rc$RC.xz
fi