UBUNTU: [Packaging] Preserve the correct log file variable value
In successful builds, ensure that log variable remains set to the correct value, such that further processing can be done on it for the lrm builds. Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
5746790504
commit
f907196681
Vendored
+4
-1
@@ -171,7 +171,10 @@ $fakeroot /usr/sbin/dkms build --no-prepare-kernel --no-clean-kernel \
|
||||
# Find the log and add it to our own.
|
||||
for log in "$dkms_dir/build/$dkms_package/$dkms_version/$abi_flavour"/*/"log/make.log" "$dkms_dir/build/$dkms_package/$dkms_version/build/make.log"
|
||||
do
|
||||
[ -f "$log" ] && sed -e "s@$dkms_dir@<<DKMSDIR>>@g" <"$log"
|
||||
if [ -f "$log" ]; then
|
||||
sed -e "s@$dkms_dir@<<DKMSDIR>>@g" <"$log"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# If this build failed then exit here.
|
||||
|
||||
Reference in New Issue
Block a user