1. 15 Mar, 2018 2 commits
  2. 14 Mar, 2018 17 commits
  3. 06 Feb, 2018 2 commits
  4. 19 Jan, 2018 8 commits
  5. 18 Jan, 2018 2 commits
  6. 11 Jan, 2018 1 commit
    • Allan McRae's avatar
      Support new OpenPGP format packets lengths · e8462a4f
      Allan McRae authored
      
      
      RFC 4880 defines two packet formats for OpenPGP.  Pacman aborted its key
      in keyring check with an error message if it encountered the new format.
      This was fine until some annoying Arch Trusted User generated a key
      using the new format!
      
      Implement the new format.  This also required parsing the hashed sub
      packets. requiring the parsing code to moved to its own function.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      e8462a4f
  7. 10 Jan, 2018 3 commits
  8. 09 Jan, 2018 2 commits
    • Allan McRae's avatar
      Do not continuously try to open an invalid database · 59b6fdee
      Allan McRae authored
      
      
      If you manage to download a bad database (e.g. an html file when
      behind a proxy or with a badly configured webserver), pacman makes
      sure you know about it.  Here is some example output:
      
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
      
      I don't know how many times that gets printed because it goes beyond my scrollback
      buffer.
      
      Flag a database that we can "open" and "fstat" but not read from as invalid to avoid
      this.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      59b6fdee
    • Allan McRae's avatar
      Handle empty string passed to query_owner · 24ab8717
      Allan McRae authored
      
      
      Passing an empty string to pacman -Qo results in:
      error: No package owns <first directory in $PATH>
      
      Catch empty strings and report an error.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      24ab8717
  9. 06 Jan, 2018 3 commits