On Wed, Apr 18, 2007 at 11:05:35AM +0200, Loïc Minier wrote:
> On Mon, Apr 16, 2007, Eddy Petrișor wrote:
> > print STDERR "Command $cmd failed in ".Cwd::getcwd.", how to
> > continue now? [Qri?]: ";
> > > Command /bin/sh -c my-pdebuild   failed in , how to continue now? [Qri?]: 
> > Judging from the missing directory name ^^^^^^^^^
> > and from the fact you used COW, I suspect the build directory is
> > removed before this message appears making the Cwd::getcwd command fail.
> 
>  It seems to me your analysis is correct; I reproduced that Cwd::getcwd
>  returns undef when the underlying directory is removed.
> 
>  Your changes seem appropriate.
seems ok for me too. Maybe we can use a conditional operator to avoid a
new var?:
      print STDERR "Command $cmd failed in ".
      ($Cwd::getcwd?$Cwd::getcwd:"<unknow>").
      ", how to continue now?[Qri?]: ";

Cheers,

         Gonéri

Attachment: pgpFb4Cw9V9u8.pgp
Description: PGP signature

Reply via email to