WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-import -d query  (Read 2112 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
sce-import -d query
« on: February 20, 2016, 11:39:36 PM »
Relatively minor but a scenario that happens when user no longer wants an extension to be dependent on other SCEs. Maybe i'm missing something. I've read the goal is to have minimal manual intervention in the /sce directory, hence the query.

User that wants to re-import existing extension so it's no longer dependent on anything is presently required to either run  sce-remove  and reboot, but of course this requires a reboot. Otherwise user can simply delete all of the extension's files from /sce or at least delete the *.dep file, which is manual intervention.

For example, run  sce-import -d nano-tiny  and make dependent on xorg. User changes mind and no longer wants the dependency but running  sce-import nano-tiny  automatically finds and installs using the existing dependency file (despite the -d option not being used), and there is no pause and query to delete the old .dep file before proceeding. Alternatively, attempting to run  sce-import -d nano-tiny  does not allow for a 'no dependency' option in the 'Choose existing SCE(s) that will provide dependencies for nano-tiny' choice list.

The issue could probably be resolved if either  sce-import  queried using/deleting the existing *.dep file on re-import and/or if  sce-import -d  had a 'no dependency' option, which could then delete any existing *.dep file before re-importing.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -d query
« Reply #1 on: February 21, 2016, 08:00:22 AM »
Ok, a fix will be in a new RC today.

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: sce-import -d query
« Reply #2 on: February 21, 2016, 05:32:25 PM »
The issue could probably be resolved if either  sce-import  queried using/deleting the existing *.dep file on re-import and/or if  sce-import -d  had a 'no dependency' option, which could then delete any existing *.dep file before re-importing.
So that could be a -D option.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -d query
« Reply #3 on: February 21, 2016, 05:57:41 PM »
A -D option could make sense.   But right now if a dep file is found, then one has the option to use it or create a new one, or not.   In noniteractive mode, the dep file is just used but that is the only way to do noninteractive.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-import -d query
« Reply #4 on: February 22, 2016, 01:20:07 AM »
Tested new sce-import with and without -D option. All appeared to work well for importing SCE with/out dependency, altering dependencies or deleting the .dep file. Looks good, thanks for the enhancement. To me the -D option provides very little benefit as running simply sce-import now allows user the option to delete or modify an existing .dep file. Plus using the -D option isn't non-interactive anyway for 'non-interactive' users, as the 'select dependency menu still popped up when running  sce-import -nD  . To me nothing that can't be accomplished with the already existing -z and other sce-import options. Nonetheless maybe some will find it more useful, thanks again.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -d query
« Reply #5 on: February 22, 2016, 09:34:15 AM »
Ok, I see the select dependencies menu pop up with 'sce-import -nd' also.  The only way to make it truly noninteractive is to not have a menu pop up and therefore no dep selection, meaning the -d or -D option is simply negated.  Of course, existing .dep file would be quietly used without prompting to use it or choose another in the 'sce-import -nd' session.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import -d query
« Reply #6 on: February 22, 2016, 11:25:36 AM »
Removed -D option as it created 4x the complexity in the dependency option code.  Now -d is cancelled by -n as noninteractive should be just that.  Existing dep files are recognized and used, of course.   In next RC.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-import -d query
« Reply #7 on: February 23, 2016, 01:17:23 AM »
Sounds good, keep things simpler. The option is gone but the -D help file contents have not yet been removed, thanks.