Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: sm8ps on May 07, 2015, 12:29:30 PM

Title: sce-import: dependencies selection list not working correctly
Post by: sm8ps on May 07, 2015, 12:29:30 PM
I have four extensions loaded: flwm, grapics-..., Xprogs, xorg-all
When I issue 'sce-load -d wbar' I can select the above extensions one by one and the list keeps shrinking down to where there are only two left. Selecting any one of these remaining two the list does not reappear and both are included then into the '.dep' file.
Expected behavior would be that the list reappears with the remaining extension that may be selected or not; the latter is not possible at the moment.
Title: Re: sce-import: dependencies selection list not working correctly
Post by: Jason W on May 07, 2015, 03:23:42 PM
Ok I will look into it.
Title: Re: sce-import: dependencies selection list not working correctly
Post by: Jason W on May 07, 2015, 07:54:48 PM
Ok, that is a behavior of the select menu.  I am not sure there is a way to fix it.  Like with sce-load, when one is left there is no menu just automatically loaded.
Title: Re: sce-import: dependencies selection list not working correctly
Post by: sm8ps on May 08, 2015, 03:09:40 AM
Ah, I see. That behavior is appropriate in case there is only one item in the list from the start. Yet the logic ought to be that if the one-item list is derived from a previous two-item list then the remaining item should not be auto-selected.

I have not dived into the sce-scripts yet. Could you point out where the select menu is defined so that I can have a look at it?
Title: Re: sce-import: dependencies selection list not working correctly
Post by: sm8ps on May 08, 2015, 05:19:01 AM
I checked '/usr/bin/select' and would like to suggest removing lines 29-32:
Code: [Select]
29  if ( NR == 1 ) {
30  print A[1] > answer
31  break
32  }
This would eliminate the auto-magic selection of any remaining last item and would necessitate selecting such an element explicitly. As a new and probably expected feature this would allow to leave a remaining element unselected as well.
I do not recognize an side-effects but I am not familiar with all the places where this code is being used.
Title: Re: sce-import: dependencies selection list not working correctly
Post by: Jason W on May 08, 2015, 08:50:50 AM
I'll try it out.