From 18d9e4daa9501786a725a1991e03c6d705503cf5 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Mon, 15 Sep 2014 16:54:12 -0500 Subject: [PATCH] fix regression in user-specified source RPM A recent commit 74316588e is unconditionally setting the SRCRPM path overwriting a user specified path. Only set SRCRPM if SRCRPM is not already set. Signed-off-by: Seth Jennings --- kpatch-build/kpatch-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 01d44b6..4ed7996 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -321,8 +321,8 @@ else rpm -q --quiet yum-utils || die "yum-utils not installed" yumdownloader --source --destdir "$TEMPDIR" "kernel-$ARCHVERSION" >> "$LOGFILE" 2>&1 || die fi + SRCRPM="$TEMPDIR/kernel-$KVER-$KREL.src.rpm" fi - SRCRPM="$TEMPDIR/kernel-$KVER-$KREL.src.rpm" echo "Unpacking kernel source" rpmdev-setuptree >> "$LOGFILE" 2>&1 || die