1. 15 Nov, 2019 1 commit
    • Allan McRae's avatar
      Handle .part files that are the size of the correct package · e6a6d307
      Allan McRae authored
      
      
      In rare cases, likely due to a well timed Ctrl+C, but possibly due to a
      broken mirror, a ".part" file may have size at least that of the correct
      package size.
      
      When encountering this issue, currently pacman fails in different ways
      depending on where the package falls in the list to download.  If last,
      "wrong or NULL argument passed" error is reported, or a "invalid or
      corrupt package" issue if not.
      
      Capture these .part files, and remove the extension. This lets pacman
      either use the package if valid, or offer to remove it if it fails checksum
      or signature verification.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      e6a6d307
  2. 11 Nov, 2019 1 commit
  3. 23 Oct, 2019 1 commit
  4. 07 Oct, 2019 1 commit
  5. 07 Mar, 2019 1 commit
  6. 10 Jan, 2019 1 commit
    • Allan McRae's avatar
      libalpm/sync.c: change alpm_sync_newversion() to alpm_sync_get_new_version() · e9d91a68
      Allan McRae authored
      
      
      The behaviour of "pacman -Qu" was very strange...  It would only consider
      packages from repos with Usage = Search (or All), and ignore those with
      Usage = Sync, Install or Upgrade.
      
      This is because the function alpm_sync_newversion() used ALPM_DB_USAGE_SEARCH
      for its filtering. Given this function is documented (at least in the source)
      to "Check for new version of pkg in sync repos", I would expect that to look at
      all repos. However, just changing this parameter, would result in a fairly
      silent change in behaviour of this function. Instead, rename the function
      and remove this filtering altogether.  Users of this function can filter
      the dbs passed to this function to achieve their desired output.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      e9d91a68
  7. 20 Oct, 2018 1 commit
  8. 19 Sep, 2018 2 commits
  9. 13 May, 2018 1 commit
    • Eli Schwartz's avatar
      Remove all modelines from the project · 860e4c49
      Eli Schwartz authored and Allan McRae's avatar Allan McRae committed
      
      
      Many of these are pointless (e.g. there is no need to explicitly turn on
      spellchecking and language dictionaries for the manpages by default).
      
      The only useful modelines are the ones enforcing the project coding
      standards for indentation style (and "maybe" filetype/syntax, but
      everything except the asciidoc manpages and makepkg.conf is already
      autodetected), and indent style can be applied more easily with
      .editorconfig
      
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      860e4c49
  10. 14 Mar, 2018 1 commit
  11. 28 Jul, 2017 1 commit
  12. 04 Jan, 2017 1 commit
  13. 05 Dec, 2016 1 commit
    • Martin Kühne's avatar
      Parametrise the different ways in which the payload is reset · e83e868a
      Martin Kühne authored and Allan McRae's avatar Allan McRae committed
      
      
      In FS#43434, Downloads which fail and are restarted on a different server
      will resume and may display a negative download speed. The payload's progress
      in libalpm was not properly reset which ultimately caused terminal noise
      because the line width calculation assumes positive download speeds.
      
      This patch fixes the incomplete reset of the payload by mimicing what
      be_sync.c:alpm_db_update() does over in sync.c:download_single_file().
      The new dload.c:_alpm_dload_payload_reset_for_retry() extends beyond the
      current behavior by updating initial_size and prevprogress for this case.
      This makes pacman reset the progress properly in the next invocation of the
      callback and display positive download speeds.
      
      Fixes FS#43434.
      
      Signed-off-by: default avatarMartin Kühne <mysatyre@gmail.com>
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      e83e868a
  14. 22 Oct, 2016 2 commits
  15. 23 Feb, 2016 1 commit
  16. 04 Jan, 2016 1 commit
  17. 20 Sep, 2015 1 commit
  18. 20 Jul, 2015 1 commit
  19. 03 Mar, 2015 1 commit
  20. 01 Feb, 2015 1 commit
  21. 27 Dec, 2014 1 commit
  22. 24 Dec, 2014 1 commit
  23. 13 Oct, 2014 1 commit
  24. 30 Sep, 2014 3 commits
  25. 03 Aug, 2014 1 commit
  26. 24 Jun, 2014 1 commit
  27. 08 Mar, 2014 1 commit
  28. 04 Mar, 2014 1 commit
  29. 03 Mar, 2014 4 commits
  30. 07 Feb, 2014 1 commit
  31. 04 Feb, 2014 1 commit
  32. 30 Jan, 2014 1 commit
  33. 28 Jan, 2014 1 commit