Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a5ae87c0fafe8020fb96992d4200d21fb05a68b6c9a8d6fa8571032192538e9e
Ticket: 5d6de65036f6ecd229c8c46e591aae520547968a
[package require] misses stable options with stable preference
User & Date: aku on 2017-11-13 19:06:11
Changes

  1. icomment:
    See commit [12e286e121] for my fix.
    No radical change.
    Kept a single search loop with choice after its completion.
    Simply made sure that a failure in the first comparison of each iteration does not prevent the comparison for stable to be run.
    Moved the requirements check before both.
    
    Passes the extended testsuite.
    
    If acceptable, please merge.
    
    A more radical approach would be to move the search loop into a separate function, add flag to distinguish search for stable vs search for any. Then run search for any if stable is not requested, or search for stable failed to find anything.
    
    Comment indicated that the list of available versions is sorted ?
    Ascending or descending ?
    If descending we can take first element matching our criteria and then stop.
    For ascending I see no way to an early stop.
    
  2. login: "aku"
  3. mimetype: "text/x-fossil-wiki"