- Apr 05, 2017
-
-
Luke Shumaker authored
This involves extending the signature of lib/common.sh's `stat_busy()`, `lock()`, and `slock()`. The `mesg=$1; shift` in stat_busy even suggests that this is what was originally intended from it.
-
Luke Shumaker authored
In cases where there is no license specified, the file is tagged as "License: Unspecified". Obviously, that is not ideal, but it highlights the fact, and I hope that it encourages whoever has the authority to specify the license to do so. On that note, to anyone who may have the authority to specify the license of files in devtools: the current licence of many files is GPLv2 with no option for later versions; I impore you to re-license them to have the "or any later version" option.
-
Luke Shumaker authored
This provides a cross-editor hint that the syntax of the file is Bash.
-
Luke Shumaker authored
-
Luke Shumaker authored
-
Luke Shumaker authored
Allow for locks to be inherited. Inheriting the lock is something that mkarchroot could do previously, but has since lost the ability to do. This allows for the programs to be more compos-able. Do this by instead of unconditionally opening $file on $fd, first check if $file is already open on $fd; and go ahead use it if it is. The naive way of doing this would be to `$(readlink /dev/fd/$fd)` and compare that to `$file`. However, if `$file` is itself a symlink; or there is a symlink somewhere in the path to `$file`, then this could easily fail. Instead, check `[[ "/dev/fd/$fd" -ef "$file" ]]`. Even though the Bash documentation (`help test`) says that `-ef` checks for if the two files are hard links to eachother, because it uses stat(3) (which resolves symlinks) to do this check, it also works with the /dev/fd/ soft links.
-
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
-