Skip to content
Snippets Groups Projects

Feature/diffpkg output modes

Merged Levente Polyak requested to merge feature/diffpkg-output-modes into master
  1. Aug 31, 2022
    • Levente Polyak's avatar
      fix: properly check for invalid argument in checkpkg and diffpkg · 53be0527
      Levente Polyak authored
      The option switch case only matches by splitting via '|' instead of ','
      Verified
      53be0527
    • Levente Polyak's avatar
      diffpkg: prefer to search inside the pool dir if available · f4e8047d
      Levente Polyak authored
      On certain packaging machines where the pacman cache gets updated very
      infrequently, the behavior of diffpkg may not function correctly as old
      packages were to be downloaded as diff target. In such cases we look for
      a pool directory first and search via a glob for an available pool
      package sorted by version.
      
      The pool search glob has three glob segments each disallowing the dash
      delimiter to split across pkgrel, pkgver and arch. This will return the
      correct package from the pool without considering overly eager wildcards
      that potentially match different pkgnames.
      
      The default pool search directory is /srv/ftp/pool
      Verified
      f4e8047d
    • Levente Polyak's avatar
      diffpkg: allow to set column width for side-by-side view · 70a3041f
      Levente Polyak authored
      The magic values `columns` and `auto` allow to set specific aspects,
      with 'auto' as the default value:
      
      - auto: Set width to the maximum line length of all input files
      - columns: Set width to the shell defined $COLUMNS env var
      
      Furthermore any number can be passed to set a static width.
      Verified
      70a3041f
  2. Aug 23, 2022
Loading