Debian: die if we are unable to find the override kernel deb
PATCH 1/1 Debian: die if we are unable to find the override kernel deb
Signed-off-by Ian Campbell <[email protected]>
--- Osstest/Debian.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Osstest/Debian.pm +4 -2
@@ -557,11 +557,13 @@ END my $d_i= $c{TftpPath}.'/'.$c{TftpDiBase}.'/'.$r{arch}.'/'.$c{TftpDiVersion}.'-'.$ho->{Suite}; my $kurl = create_webfile($ho, "kernel", sub { - copy("$d_i/$kp.deb", $_[0]); + copy("$d_i/$kp.deb", $_[0]) + or die "Copy kernel failed: $!"; }); my $iurl = create_webfile($ho, "initramfs-tools", sub { - copy("$d_i/initramfs-tools.deb", $_[0]); + copy("$d_i/initramfs-tools.deb", $_[0]) + or die "Copy initramfs-tools failed: $!"; }); preseed_hook_command($ho, 'late_command', $sfx, <<END);
Signature · 1 line
1.8.5.2
Ian Campbell writes ("[PATCH OSSTEST] Debian: die if we are unable to find the override kernel deb"):
Quoted 1 line
Signed-off-by Ian Campbell <[email protected]>
Acked-by Ian Jackson <[email protected]>
It looks like I misunderstood File::Copy's error behaviour.
Thanks,
Ian.
Quoted 4 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST] Debian: die if we are unable to find the override kernel deb"):
Quoted 1 line
Signed-off-by Ian Campbell <[email protected]>Acked-by Ian Jackson <[email protected]>
Thanks.
Quoted 1 line
It looks like I misunderstood File::Copy's error behaviour.
I think that was me...
Ian.