1. 01 Jan, 2023 2 commits
  2. 23 Dec, 2022 1 commit
  3. 19 Dec, 2022 1 commit
    • Morgan Adamiec's avatar
      Fix repo-add · 52eb094a
      Morgan Adamiec authored and Allan McRae's avatar Allan McRae committed
      Commit 4f43ce3e broke repo-add by
      switching to parseopts without accounting for the added "--". This caused
      the dbname to always be read as "--".
      Accounts for "--" and makes repo-add respect "--" as end of opts.
  4. 18 Dec, 2022 1 commit
  5. 13 Dec, 2022 9 commits
  6. 12 Dec, 2022 1 commit
    • Allan McRae's avatar
      libmakepkg: fix compatibility with bash-5.2 patsub_replacement · 0e938f18
      Allan McRae authored
      Bash-5.2 introduced the patsub_replacement shell option, which is enabled
      by default.  Apparently is it supposed to handle a sed-like idiom, but
      what it does achieve is making any substitution involving a "&" requiring
      special care.
      For makepkg's DLAGENTS, we replace "%o" and "%u" if present.  Any "&" in
      the replacement fields triggers patsub_replacement unless quoted.  This is
      particularly important for the URL field.
      Add relevant quotes to avoid issues.
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
  7. 04 Dec, 2022 4 commits
  8. 08 Nov, 2022 3 commits
  9. 07 Nov, 2022 2 commits
  10. 15 Oct, 2022 1 commit
    • Andrew Gregory's avatar
      set bash env variables before running scripts · da68447e
      Andrew Gregory authored
      Bash sources user configuration files under a number of conditions that
      can cause issues with scripts when bash is used as the scriptlet shell.
      Bash assumes it's being run under rsh/ssh if stdin is connected to a
      socket and sources the user bashrc unless the environment variable
      $SHLVL is >= 2.  Commit 6a4c6a02
      switched from pipes to sockets when communicating with child processes
      to work around SIGPIPE issues.  Normally $SHLVL would be inherited from
      the shell running pacman, but operations involving scriptlets are
      generally run with sudo which does not let the $SHLVL variable through
      unless specifically configured to.
      Similarly $BASH_ENV can cause bash to source user-specified configuration
      files if set.
      Note: the list discussion and bash source all reference SHLVL >= 2, this
      is the SHLVL value *after* bash has incremented it on startup.  Setting
      it to 1 in pacman is sufficient to disable the unwanted behavior.
      Signed-off-by: default avatarAndrew Gregory <andrew.gregory.8@gmail.com>
  11. 09 Oct, 2022 3 commits
  12. 08 Oct, 2022 1 commit
  13. 02 Oct, 2022 1 commit
  14. 26 Sep, 2022 3 commits
  15. 07 Sep, 2022 1 commit
  16. 04 Aug, 2022 1 commit
  17. 02 Aug, 2022 2 commits
  18. 29 Jul, 2022 2 commits
    • solo turn's avatar
      makepkg: Add GITFLAGS environmental variable to customise checkout · e017a597
      solo turn authored and Allan McRae's avatar Allan McRae committed
      The default flag used to clone a git repository when using makepkg
      is "--mirror". However, when working with huge repositories, the use
      of different flags during cloning can allow an faster checkout. For
      example, using "--filter=blob:none" allows for small checkouts, at
      the expense of requiring downloads during the build stage if anything
      but the HEAD commit is used for the build. In addition, this example
      would serve as a replacement for the often requested (but broken)
      addition of --depth=1.
      Add support for the environment variable GITFLAG to pass flags for
      the git clone command. Note that this overrides the default rather
      than adding to it in order to prevent incompatibilities.
    • Daan De Meyer's avatar
      Add --keyringdir meson option to configure the keyring directory · 79bd5121
      Daan De Meyer authored and Allan McRae's avatar Allan McRae committed
      On Debian, keyrings are stored in /usr/share/keyrings. To support
      this, let's add a new --keyringdir option that allows configuring
      the directory under datarootdir where the keyrings should be
      imported from. We default to 'pacman/keyrings' for backwards
  19. 28 Jul, 2022 1 commit