mirror of
https://github.com/dynup/kpatch
synced 2025-03-11 05:07:53 +00:00
kpatch-build: drop architecture spec from source rpm request
Source RPMs don't have an architecture associated with them, so to avoid confusion, drop that part of the kernel release string when calling yumdownloader. Fixes #887. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
parent
7dc6e5f215
commit
bc28b576ed
@ -581,7 +581,7 @@ else
|
||||
wget -P "$TEMPDIR" "http://kojipkgs.fedoraproject.org/packages/kernel/$KVER/$KREL/src/kernel-$KVER-$KREL.src.rpm" 2>&1 | logger || die
|
||||
else
|
||||
rpm -q --quiet yum-utils || die "yum-utils not installed"
|
||||
yumdownloader --source --destdir "$TEMPDIR" "kernel$ALT-$ARCHVERSION" 2>&1 | logger || die
|
||||
yumdownloader --source --destdir "$TEMPDIR" "kernel$ALT-$KVER-$KREL" 2>&1 | logger || die
|
||||
fi
|
||||
SRCRPM="$TEMPDIR/kernel$ALT-$KVER-$KREL.src.rpm"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user