Pipe patcher output to a prepare.log file
This commit is contained in:
parent
b5ac6c6f74
commit
bd9f402d96
@ -288,7 +288,9 @@ user_patcher() {
|
|||||||
|
|
||||||
_tkg_patcher() {
|
_tkg_patcher() {
|
||||||
if [ -e "$tkgpatch" ]; then
|
if [ -e "$tkgpatch" ]; then
|
||||||
patch -Np1 -i "$tkgpatch"
|
echo -e "### Applying ${tkgpatch##*/}... ###" >> "$_where"/prepare.log
|
||||||
|
patch -Np1 -i "$tkgpatch" >> "$_where"/prepare.log || error "An error was encountered applying patches. It was logged to the prepare.log file."
|
||||||
|
echo -e "\n" >> "$_where"/prepare.log
|
||||||
else
|
else
|
||||||
msg2 "Patch either not found, not available for this kernel version or not needed. Skipping..."
|
msg2 "Patch either not found, not available for this kernel version or not needed. Skipping..."
|
||||||
fi
|
fi
|
||||||
@ -304,6 +306,7 @@ _tkg_srcprep() {
|
|||||||
msg2 "Setting version..."
|
msg2 "Setting version..."
|
||||||
scripts/setlocalversion --save-scmversion
|
scripts/setlocalversion --save-scmversion
|
||||||
echo "-$pkgrel-tkg-${_cpusched}${_compiler_name}" > localversion.10-pkgrel
|
echo "-$pkgrel-tkg-${_cpusched}${_compiler_name}" > localversion.10-pkgrel
|
||||||
|
echo -e "Version tail set to \"-$pkgrel-tkg-${_cpusched}${_compiler_name}\"\n" > "$_where"/prepare.log
|
||||||
echo "" > localversion.20-pkgname
|
echo "" > localversion.20-pkgname
|
||||||
|
|
||||||
# add upstream patch
|
# add upstream patch
|
||||||
|
Loading…
Reference in New Issue
Block a user