index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-02-20 | libmakepkg: increase robustness of the detection of array variables | Allan McRae | |
Extract array detection into its own utility function that ensures extglob is enabled. Suggested-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2016-01-25 | Fix testing of arrays status for arch specific variables | Zuyi Hu | |
Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2016-01-04 | Update copyright years for 2016 | Allan McRae | |
make update-copyright OLD=2015 NEW=2016 Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-11-23 | lint_pkgbuild/variable: increase robustness | Allan McRae | |
Approach the detection of variables of the wrong type using an approach similar to that used for construction of .SRCINFO files. While doing silly things in bash could still result in false negatives, this approach should be very robust to generatinf false positives results. Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-11-23 | lint_pkgbuild: explicitly return value | Allan McRae | |
Set the return value to be local and always explictly returns it. Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-11-05 | Refactor lint_source to work with earlier versions of Bash | Aaron Campbell | |
Negative subscripts to indexed arrays are not supported before 4.2. However, since substring expansion works on arrays, we can specify an offset of -1 to be taken relative to one greater than the maximum index of the specified array (see Parameter Expansion section of the bash man page). This works with both Bash 4.1 and 4.2, and 4.1 is already the oldest supported by pacman. Signed-off-by: Aaron Campbell <aaron@monkey.org> Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-10-27 | libmakepkg: fix pkgver checking | Allan McRae | |
Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-09-22 | libmakepkg: remove declaration of unused local variables | Allan McRae | |
Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-09-22 | libmakepkg: return 1 on error in arch array | Allan McRae | |
The return value was being assigned when an error was found in a PKGBUILD's arch array but it never was returned. Also remove error message explaining about adding the arch array to a PKGBUILD. That was added a long time ago when the arch array first became compulsory. Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-09-07 | libmakepkg: check if PKGBUILD variables are arrays or not as appropriate | Allan McRae | |
When extracting variables from PKGBUILD (e.g. for .SRCINFO creation) we make assumptions about whether variables are arrays or not. This adds a check to the PKGBUILD linter to ensure variables are arrays or not as appropriate. Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-05-16 | makepkg: put further restrictions on pkgbase | Allan McRae | |
pkgbase should be subject to the same restrictions as pkgname Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-05-16 | makepkg: merge validate_pkgver into check_pkgver | Allan McRae | |
The check that pkgver is non-empty done in check_pkgver should also be performed after running the pkgver() function. Merge validate_pkgver into check_pkgver and run check_pkgver after updating pkgver. Signed-off-by: Allan McRae <allan@archlinux.org> | |||
2015-05-16 | libmakepkg: extract PKGBUILD linting functions | Allan McRae | |
Signed-off-by: Allan McRae <allan@archlinux.org> |