Changes between Version 239 and Version 240 of SummerOfCode


Ignore:
Timestamp:
May 17, 2014, 11:29:05 AM (10 years ago)
Author:
shasha@…
Comment:

added list of interactive cases

Legend:

Unmodified
Added
Removed
Modified
  • SummerOfCode

    v239 v240  
    252252Write an interactive command-line tool that can be used instead of the non-interactive port(1). (The existing "interactive mode" of port(1) is actually just batch mode reading from stdin, and is not really interactive.) Factor out code used by both tools into a shared module.
    253253
    254 An interactive tool would ask for user input to resolve many situations that cause port(1) to simply error out. For example, if you try to install a port and one of its dependencies conflicts with something already installed, it could ask if you want to deactivate the installed one and its dependents.
     254An interactive tool would ask for user input to resolve many situations that cause port(1) to simply error out.
     255All the suggested interactivity use cases are listed below-
     2561. If you try to install a port and one of its dependencies conflict with something already installed, it could ask if you want to
     257   deactivate the installed one and its dependents and reactivate them after the build.
     2582. When trying to install a port but one of the files installed by this port is already present, ask the user whether the file should be
     259   overwritten.
     2603. When a user tries to install a port, display a list of ports that will be installed as dependencies and ask for confirmation (unless
     261   there aren't any dependencies to be installed), like apt-get does.
     2624. Asking for permission in a situation where uninstalling a package will break another package that's still installed and depends on   
     263   the to-be-uninstalled package.
     2645. When installing a port that requires a dependency to have a certain variant, but this variant is not set. Ask the user if it should 
     265   reinstall the dependency with that variant.
     2666. When activate is ambiguous, present a list of installed ports for the user to choose from.
     2677. Ask user before rebuilding in rev-upgrade.
     2688. When a user uninstalls a port using --follow-dependencies, the list of dependencies will be displayed and the user will be asked for 
     269   confirmation.
    255270
    256271* Difficulty: Medium