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:
Dimitri John Ledkov
2023-02-27 14:49:52 +00:00
committed by Paolo Pisati
parent 5746790504
commit f907196681
+4 -1
View File
@@ -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.