← Back to team overview

dorsal team mailing list archive

Re: [Branch ~dorsal-core/dorsal/main] Rev 378: Add openSSUE 11.3

 

On 8/18/10 7:28 PM, Garth N. Wells wrote:
> On Wed, 2010-08-18 at 19:19 +0530, Harish Narayanan wrote:
>> On 8/18/10 7:17 PM, Garth N. Wells wrote:
>>> On Wed, 2010-08-18 at 19:10 +0530, Harish Narayanan wrote:
>>>> On 8/18/10 7:08 PM, Garth N. Wells wrote:
>>>>> On Wed, 2010-08-18 at 19:03 +0530, Harish Narayanan wrote:
>>>>>> On 8/18/10 6:54 PM, Garth N. Wells wrote:
>>>>>>> On Wed, 2010-08-18 at 13:16 +0000, noreply@xxxxxxxxxxxxx wrote:
>>>>>>>> ------------------------------------------------------------
>>>>>>>> revno: 378
>>>>>>>> committer: Garth N. Wells <gnw20@xxxxxxxxx>
>>>>>>>> branch nick: dorsal
>>>>>>>> timestamp: Wed 2010-08-18 14:14:01 +0100
>>>>>>>> message:
>>>>>>>>   Add openSSUE 11.3
>>>>>>>
>>>>>>> Unfortunately this doesn't work. 
>>>>>>
>>>>>> I think this is because the relevant platform file is missing.
>>>>>>
>>>>>
>>>>> I have it - just haven't pushed it yet.
>>>>>
>>>>>>> How can I get some screen output from inside the function
>>>>>>> 'guess_platform' in dorsal.sh?
>>>>>>
>>>>>> You can't use echo as usual because there is a line outside that catches
>>>>>> whatever it prints.
>>>>>>
>>>>>> PLATFORM=${PROJECT}/platforms/`guess_platform`.platform
>>>>>>
>>>>>> Instead, just insert a guess_platform anywhere, so it will print
>>>>>> whatever guess_platform prints.
>>>>>>
>>>>>
>>>>> I prints nothing - that's why I need to somehow debug the function. How
>>>>> can I do that if I can't print anything?
>>>>
>>>> I guess this means none of the case branches are being followed. Just do
>>>> an echo right at the top somewhere and it should print (if called).
>>>>
>>>
>>> It is being called - how can I print, for example, "DISTRO" to check it?
>>
>> echo $DISTRO
>>
> 
> Where? Inside the function or outside? Inside gives an error, and
> placing it outside it result is blank. If I type
> 
>  lsb_release -i -s
> 
> on the command line I get
> 
>   SUSE  LINUX

On the inside, you do

echo $DISTRO

On the outside, before the call `guess_platform` which uses its output
as a string, you do

guess_platform

(as in without the backticks.)

Harish



Follow ups

References