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 <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-09-15 16:54:12 -05:00
parent a042dc1bbc
commit 18d9e4daa9
1 changed files with 1 additions and 1 deletions

View File

@ -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