I've created a bug task for dpkg, too, because I think it should handle the situation better.
For the record, it fails in the following last block of the last "$mode eq 'auto'" code: checked_alternative($sname, $slink, $spath); checked_symlink("$spath", "$altdir/$sname.dpkg-tmp"); checked_mv("$altdir/$sname.dpkg-tmp", "$altdir/$sname");
I've created a bug task for dpkg, too, because I think it should handle the situation better.
checked_ alternative( $sname, $slink, $spath);
checked_ symlink( "$spath" , "$altdir/ $sname. dpkg-tmp" );
checked_ mv("$altdir/ $sname. dpkg-tmp" , "$altdir/$sname");
For the record, it fails in the following last block of the last "$mode eq 'auto'" code: