Comment 10 for bug 428133

Revision history for this message
Curtis Gedak (gedakc) wrote :

Martin,

I can rework the logic so that if both dk-disks and hal-lock are available then both will be used.

The challenge with the proposed method is that the --run "COMMAND $*" portion of hal-lock requires that the command plus arguments must be within quotes. Otherwise the arguments are not passed to the command. Specifically the quotes are lost on the second parsing after the dk-disks available check.

Do you know how to work around this problem?

Otherwise does the following seem OK with you?

if (dk-disks available AND hal_lock available)
   devkit-disks --inhibit ... hal-lock ... --run "gpartedbin $*"
elif (dk-disks available)
   devkit-disks inhibit ... gpartedbin $*
elif (hal_lock available)
   hal-lock ... --run "gpartedbin $*"
else
  gpartedbin $*
fi