- Apr 05, 2017
-
-
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).
-
- Mar 07, 2017
-
-
Jan Alexander Steffens (heftig) authored
The systemd package creates a subvolume at /var/lib/machines (through tmpfiles), if it can. We need to delete this subvolume before we can delete the parent subvolume. Look through the root for inodes with the number 256. These identify subvolume roots.
-
Jan Alexander Steffens (heftig) authored
-
Jan Alexander Steffens (heftig) authored
Move the function and save the orig_argv right along it.
-
Jan Alexander Steffens (heftig) authored
-
- Mar 04, 2017
-
-
Jelle van der Waa authored
-
Jelle van der Waa authored
-
- Sep 22, 2014
-
-
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.
-
Dave Reisner authored
Fixes a breakage introduced in 6db31cc1 which leads to errors being masked from makechrootpkg.
-
- May 10, 2014
-
-
Sébastien Luttringer authored
In collaborative builder machine, these scripts are often allowed to become root via sudo. This patch avoid to prefix them by sudo each time or call su. Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
BlackEagle authored
Signed-off-by:
BlackEagle <ike.devolder@gmail.com> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
BlackEagle authored
Signed-off-by:
BlackEagle <ike.devolder@gmail.com> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
BlackEagle authored
Signed-off-by:
BlackEagle <ike.devolder@gmail.com> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- Nov 04, 2013
-
-
Dave Reisner authored
If PKGDEST is set when makepkg was run, the package will be present in find_cached_package's search path by default, causing an error. This also fixes a display bug which causes no output to be shown when multiple packages are found. Fixes FS#37626. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- Nov 01, 2013
-
-
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:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- Aug 08, 2013
-
-
Dave Reisner authored
Also allow this function to be called without arguments, in which case, don't call error at all. Some uses of this function wrongly assumed that this was already allowed. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- May 03, 2013
-
-
Jan Alexander Steffens (heftig) authored
Reduces code duplication. With makechrootpkg not calling mkarchroot anymore, the lock handover protocol is unneeded. arch-nspawn does not do any locking, so add protection to archbuild.
-
- Oct 27, 2012
-
-
Jan Alexander Steffens (heftig) authored
Stop trap_exit from forcing a 0 exit code. This fixes makechrootpkg, which used to always return success, even if the build failed. Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- Oct 03, 2012
-
-
Pierre Schmitz authored
-
- Jun 16, 2012
-
-
Pierre Schmitz authored
-
- Feb 12, 2012
-
-
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:
Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- Nov 04, 2011
-
-
Lukas Fleischer authored
* Honor TMPDIR variable (just like we did in commit a0c6bf45). * Quote path properly. * Avoid unnecessary use of basename(1). Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- Nov 01, 2011
-
-
Pierre Schmitz authored
* common.sh is included on build time * most functions are copied from makepkg
-