1. 14 Jun, 2018 1 commit
  2. 19 Jun, 2013 1 commit
    • Timo Teräs's avatar
      upgrade: new option: --latest (-l) · d315c901
      Timo Teräs authored
      Select latest version of package (if it is not pinned), and print
      error if it cannot be installed due to other dependencies.
      
      Together with --available, it selects the latest package which is
      present at least in some repository.
      
      This also fixes few solver issues with ordering of package selection
      that got quite apparent with this flag. Namely, we cannot "lock"
      a package until it's reverse dependencies are locked or not all of
      the solver flags are propagated properly.
      d315c901
  3. 13 Jun, 2013 1 commit
  4. 29 Feb, 2012 1 commit
    • Timo Teräs's avatar
      solver: merge apk_name_state to apk_name · 2f66295f
      Timo Teräs authored
      apk_name_state is now quite small; and we avoid overhead of two
      pointers (+ malloc overhead) when we just make it part of apk_name.
      It also fixes some problems (that got introduced) where apk_name_state
      was not allocated.
      2f66295f
  5. 16 Feb, 2012 1 commit
  6. 15 Feb, 2012 1 commit
    • Timo Teräs's avatar
      solver, db: repository pinning improvements · 41fb3a4f
      Timo Teräs authored
      * solver internally calculates now using tags; not repository masks
      * installeddb now contains the tag name where the package came from
        -> we can now handle upgrades properly
      * the pinning is still a preference, and not strictly enforced;
        versioned dependencies may overrule preference
      41fb3a4f
  7. 13 Jan, 2012 1 commit
    • Timo Teräs's avatar
      add: make repository tag pinning stronger · 2ea61da9
      Timo Teräs authored
      Previously we would not upgrade just by doing "apk add foo@tag" if
      foo was already installed. It required explicit '-u'. This allows
      'apk add' to explicitly prefer the newly specified pinning.
      2ea61da9
  8. 16 Sep, 2011 1 commit
    • Timo Teräs's avatar
      solver: inheritable solver flags · 51999c97
      Timo Teräs authored
      allow per-name solver flags to be inheritable, and use them in
      self-upgrade, add -u  and the fix applet. this gives more familiar
      behaviour for the upgrades.
      51999c97
  9. 14 Sep, 2011 2 commits
  10. 13 Sep, 2011 2 commits
  11. 09 Sep, 2011 2 commits
  12. 01 Aug, 2011 1 commit
    • Timo Teräs's avatar
      solver: generate proper error messages · a5146f1b
      Timo Teräs authored
       * the solver no longer does look-ahead locking of names
         (could be possibly optimized later); instead names are now
         always ordered strictly to properly detect the package names
         which are unsolveable
       * basic error tests added, so we can see the most likely problem
         in dependencies easily
      a5146f1b
  13. 26 Jul, 2011 1 commit
    • Timo Teräs's avatar
      solver: new package selection logic (which is not yet used) · 79b53d4d
      Timo Teräs authored
       * basic code for a backtracking, forward checking dependency satisfier
       * works better when there are tricky dependencies to solve
         (when can't just upgrade everything to most preferred versions)
       * the new code always evaluates all of 'world' constraints
         (old code just does incremental updates based on heuristics)
       * is probably somewhat slower than old code (probably unnoticeable
         difference in most cases)
       * makes easier to write support for provides and repository pinning
       * test applet and a bunch of test cases added which uses the new code
       * from the old feature set install_if is not yet implemented
      79b53d4d