1. 24 Dec, 2014 11 commits
  2. 22 Dec, 2014 3 commits
  3. 21 Dec, 2014 2 commits
  4. 19 Dec, 2014 5 commits
  5. 18 Dec, 2014 6 commits
  6. 08 Dec, 2014 1 commit
  7. 26 Nov, 2014 1 commit
  8. 21 Nov, 2014 2 commits
  9. 20 Nov, 2014 1 commit
    • Dave Reisner's avatar
      pacsort: parse inputs up front into control struct · 04bc3a24
      Dave Reisner authored and Allan McRae's avatar Allan McRae committed
      This moves most of the parsing work out of the sorting path. The explode
      and splitfile functions now call input_new and append input_t structs
      to the list of sort candidates instead of raw strings. This lets us
      make smarter and easier decisions in the sorting callbacks, which are
      now also split into the version and file comparison methods for clarity.
      
      This fixes two bugs:
      
      1) Incorrect ordering with filenames containing epoch in the pkgver
      2) Incorrect ordering with package names which are substrings of
      each other (e.g. "systemd" and "systemd-sysvcompat").
      
      Performance of the --files mode degrades slightly as a result of this
      change, but not unreasonably. Sorting with small inputs (5-10) doubles
      in runtime, but larger inputs (4000+) only increase by 20%.
      
      ref: https://bugs.archlinux.org/task/37631
      
      
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      04bc3a24
  10. 19 Nov, 2014 3 commits
  11. 18 Nov, 2014 5 commits