1. 19 Oct, 2011 1 commit
    • Timo Teräs's avatar
      pkg: introduce "replaces_priority" · 89d003f8
      Timo Teräs authored
      If two packages replace each other, the one with highes priority
      will keep the file. Additionally, if we have a package overriding
      another's file it's remembered and handled properly. This is
      essentially to allow "policy packages" which just overwrite certain
      (configuration) files from other package(s).
      89d003f8
  2. 18 Oct, 2011 1 commit
    • Timo Teräs's avatar
      pkg, info: remember installed packages "replaces" · a787038d
      Timo Teräs authored
      "replaces" is now turned to a full dependency type list, so you can
      make package overwrite files only certain versions of the package
      (though, we should probably take this into account already at solution
      calculation phase).
      
      Also make 'info --replaces' print the "replaces" of the package.
      
      This is in preparation for the policy package support, which still
      requires "replacement priority" field to decide which packages' files
      get the preference.
      a787038d
  3. 14 Sep, 2011 1 commit
    • Timo Teräs's avatar
      solver: make state pointers completely internal · 803f55ec
      Timo Teräs authored
      the only bit of information needed in solver commit is the "hard"
      topology sorting information for trigger ordering. fixes a bug in
      "apk del" which uses the state pointers to do intermediate
      calculations between solution solving and commit.
      803f55ec
  4. 13 Sep, 2011 1 commit
  5. 05 Aug, 2011 1 commit
  6. 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
  7. 04 Apr, 2011 1 commit
  8. 04 Jan, 2011 1 commit
    • Timo Teräs's avatar
      pkg: recognize install_if · 28dcd5d3
      Timo Teräs authored
      Parse install_if from package metadata and include it in the
      indexes. Also setup the reverse install_if dependencies when
      loading a database. ref #443.
      
      Actual install_if functionality is not yet implemented.
      28dcd5d3
  9. 03 Jan, 2011 1 commit
  10. 01 Jan, 2011 2 commits
    • Timo Teräs's avatar
      pkg: dependencies to specific package checksum · 1c7e8d26
      Timo Teräs authored
      When package is installed from commandline, we should always
      install that specific instance of package (never favor repository
      version if it has difference identity). Otherwise we might not
      always end-up installing the .apk given on command line. The
      dependency is now against specific checksum identity (marked
      with >< dependency comparison). Fixes #492.
      1c7e8d26
    • Timo Teräs's avatar
      index: remove support of old index format · 0cc41ba4
      Timo Teräs authored
      It's no longer needed or used.
      0cc41ba4
  11. 14 Dec, 2010 2 commits
  12. 08 Oct, 2010 1 commit
  13. 01 Jun, 2010 1 commit
  14. 13 Aug, 2009 1 commit
  15. 12 Aug, 2009 1 commit
  16. 04 Aug, 2009 1 commit
  17. 31 Jul, 2009 1 commit
    • Timo Teräs's avatar
      apk: use *at instead of chdir+normal file syscall · ea901526
      Timo Teräs authored
      this way we never change cwd, and relative filenames are always
      parsed consistently. this also helps filename construction in many
      places. this patch also changes '--root' to override location of
      all configuration to be in the new root. previously it depended
      on the file which one was used.
      ea901526
  18. 22 Jul, 2009 3 commits
  19. 20 Jul, 2009 1 commit
  20. 17 Jul, 2009 2 commits
  21. 16 Jul, 2009 2 commits
  22. 15 Jul, 2009 1 commit
  23. 14 Jul, 2009 1 commit
  24. 20 Jun, 2009 1 commit
  25. 16 Jun, 2009 1 commit
  26. 16 Apr, 2009 2 commits
  27. 14 Apr, 2009 1 commit
    • Timo Teräs's avatar
      state: rework changeset calculation algorithm · a23f6f4a
      Timo Teräs authored
      Calculate changesets directly by stabilizating the package graph instead of
      recalculating the whole graph and then diffing (similar approach as seen
      in 'smart' package manager). The algorithm is not complete: defferred
      search space forking is missing. So you don't always get a solution on
      complex graphs.
      
      Benefits:
      - usually the search state tree is smaller (less memory used)
      - speed relational to changeset size, not database size (usually faster)
      - touch only packages related to users request (can work on partitially
        broken state; upgrades only necessary packages, fixes #7)
      
      Also implemented:
      - command prompt to confirm operation if packages are deleted or downgraded
      - requesting deletion of package suggests removal of all packages depending
        on the package being removed (you'll get list of packages that also get
        removed if you want package X removed)
      - option --simulate to see what would have been done (mainly for testing)
      - an untested implementation of versioned dependencies and conflicts
      
      A lot has changed, so expect new bugs too.
      a23f6f4a
  28. 17 Mar, 2009 1 commit
  29. 16 Jan, 2009 1 commit
  30. 06 Jan, 2009 1 commit
  31. 28 Nov, 2008 3 commits