Skip to content
Snippets Groups Projects
  1. Apr 05, 2017
    • Luke Shumaker's avatar
      lib/common.sh: add 'lock_close'; use it as appropriate. · 997bc1dc
      Luke Shumaker authored
      `lock_close FD` is easier to remember than 'exec FD>&-`; and is especially
      easier if FD is a variable (though that isn't actually taken advantage of
      here).
      
      This uses Bash 4.1+ `exec {var}>&-`, rather than the clunkier
      `eval exec "$var>&-"` that was necessary in older versions of Bash.
      Thanks to Dave Reisner for pointing this new bit of syntax out to me
      the last time I submitted this (back in 2014, 4.1 had just come out).
      997bc1dc
  2. Mar 07, 2017
  3. Mar 04, 2017
  4. Sep 22, 2014
    • Dave Reisner's avatar
      common: remove unreachable statement · 98841eb6
      Dave Reisner authored
      We run from a non-interactive shell, so the exec which is inevitably
      called will replace the current process and 'die' will never run under
      any circumstances.
      
      This also fixes a bug with the su fallback which would cause multiple
      arguments to be concatenated without any whitespace between them.
      98841eb6
    • Dave Reisner's avatar
      common.sh: propagate error through trap_exit · af6c0a0f
      Dave Reisner authored
      Fixes a breakage introduced in 6db31cc1 which leads to errors
      being masked from makechrootpkg.
      af6c0a0f
  5. May 10, 2014
  6. Nov 04, 2013
  7. Nov 01, 2013
    • Dave Reisner's avatar
      common: implement find_cached_package · 27441f20
      Dave Reisner authored
      
      This function (currently) searches through $PWD and $PKGDEST looking
      for a tarball matching the requested package name, architecture, and
      pkgver. If found, it writes the full path to the located package to
      stdout and returns 0, else 1. If more than 1 match is found, it's
      treated as an error and the user will need to figure out what to do.
      
      Use this in checkpkg and commitpkg, which previously implemented their
      own less complete logic, to locate the build artifacts they rely on.
      
      Signed-off-by: default avatarDave Reisner <dreisner@archlinux.org>
      Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
      27441f20
  8. Aug 08, 2013
  9. May 03, 2013
  10. Oct 27, 2012
  11. Oct 03, 2012
  12. Jun 16, 2012
  13. Feb 12, 2012
    • Lukas Fleischer's avatar
      archrelease: Validate tags before releasing · 9ab0d945
      Lukas Fleischer authored
      
      Compare every single tag with a list of valid tags. This prevents broken
      releases which occurred whenever someone made a typo on the command
      line:
      
          $ ./archrelease community i686
          ==> ERROR: archrelease: Invalid tag: "community" (use -f to force release)
      
      Since the list is used in the ZSH completion as well, break it out to a
      separate file and move it to "lib/". Also, add a command line parameter
      to allow for releasing to an unknown repository when necessary.
      
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
      9ab0d945
  14. Nov 04, 2011
  15. Nov 01, 2011
Loading