WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-import: dependencies selection list not working correctly  (Read 2763 times)

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
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.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import: dependencies selection list not working correctly
« Reply #1 on: May 07, 2015, 03:23:42 PM »
Ok I will look into it.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import: dependencies selection list not working correctly
« Reply #2 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.

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: sce-import: dependencies selection list not working correctly
« Reply #3 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?

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: sce-import: dependencies selection list not working correctly
« Reply #4 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.
« Last Edit: May 08, 2015, 05:23:14 AM by sm8ps »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import: dependencies selection list not working correctly
« Reply #5 on: May 08, 2015, 08:50:50 AM »
I'll try it out.