| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Closes: #249 [via git-merge-pr]
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
a few lints used the absolute path (`$template`) as prefix instead of
`$argument`
Closes: #246 [via git-merge-pr]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
before (prints line before make_check):
```
$ xlint R
shlib_provides="libR.so"
/home/abi/void-packages/srcpkgs/R/template:28: explain why the tests fail
```
after:
```
$ xlint R
/home/abi/void-packages/srcpkgs/R/template:28: explain why the tests fail
```
Closes: #245 [via git-merge-pr]
|
|
|
|
| |
Closes: #244 [via git-merge-pr]
|
|
|
|
|
|
|
| |
also add a regex_escape filter to reduce false-positives in a couple
places
Closes: #242 [via git-merge-pr]
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a slightly naïve solution that does not check if $pkgname
matches the template's directory. That would not be very trivial to do
to work with the git index functionality or subpackages, and I'm not
quite sure how to handle that.
Tested by putting two $pkgname and $version in a template.
Before:
```
$ xlint chezmoi
grep: the -P option only supports a single pattern
chezmoi'
chezmoi: 'pkgname' defined more than once
chezmoi: 'version' defined more than once
chezmoi: Place license= after pkgname=
chezmoi: Place maintainer= after version=
chezmoi:1: Header should be: # Template file for 'chezmoi
chezmoi:4: revision does not appear immediately after version
```
After:
```
$ xlint chezmoi
chezmoi: 'pkgname' defined more than once
chezmoi: 'version' defined more than once
chezmoi: Place license= after pkgname=
chezmoi: Place maintainer= after version=
chezmoi:4: revision does not appear immediately after version
```
|
|
|
|
|
|
| |
If the user would like to run a diff for a package on a certain arch,
XBPS_TARGET_ARCH=other-arch xpkgdiff -f foo will now work properly,
even if the user does not have a local repodata for that arch already.
|
| |
|
|
|
|
| |
Closes: #237 [via git-merge-pr]
|
| |
|
| |
|
|
|
|
| |
Closes: #220 [via git-merge-pr]
|
|
|
|
| |
Closes: #110 [via git-merge-pr]
|
|
|
|
| |
Closes: #232 [via git-merge-pr]
|
| |
|
|
|
|
|
|
|
|
| |
In scan() I was using $argument in the sed script, but oftentimes
$arguments is a path including slashes which breaks havoc.
Different way now, hopefully this is correct now. Note that $msg has to
go through sed since some messages use `\2` to show the matching line.
|
|
|
|
|
|
| |
- do not leak $tmpfile in output from scan()
- indent using tabs
- add new options to README
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit introduces two new uses of xlint:
$ xlint :PKGNAME
Lints the template corresponding to package PKGNAME as currently
staged in the git index (i.e. the version that would be committed)
$ xlint :
Lints all templates that are changed in the git index.
Useful to run from the pre-commit hook for the void-packages repo.
|
|
|
|
| |
Existing accounts should keep their name.
|
| |
|
| |
|
|
|
|
|
| |
X11 is a derivative of the MIT license and contains the same license
installation requirements.
|
| |
|
|
|
|
| |
Closes #212.
|
|
|
|
| |
Closes: #211 [via git-merge-pr]
|
|
|
|
| |
Closes: #208 [via git-merge-pr]
|
| |
|
|
|
|
| |
Closes: #177 [via git-merge-pr]
|
|
|
|
|
|
|
| |
See
https://github.com/void-linux/void-packages/commit/2a748e7e6d9727a7e921d6b9a163e0eb17be98b9
Closes: #205 [via git-merge-pr]
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Suggestions by kerframil:
- Fix the original su invocation bug. The original approach is veering very
close to eval territory. Let's just not overload SUDO quite so hard and
keep it coherent.
- Use id -u (posix) instead of whoami (not posix).
- Rather than try to make a scalar behave as if it were an array (it's not)
then unsafely expand it, compose the positional parameter list as needed.
Note that XBPS_BINPKGS and BRANCH are now expanded safely in the course of
doing so.
- Don't include improperly formed repository paths as parameters if git fails
or prints nothing.
- Have su pass sh as the zeroeth arg, not a dash so that, if an error in the
shell context ever happens again, the resulting message will be less
confusing. As an aside, if you want the environment to be as it normally
would be for the root user, there should be a dash (or -l) before -c, not
after --. Could help protect against issues of environmental pollution down
the line.
- Don't squash the exit status of the first call to xbps-install in the case
that it's not zero and also not 16.
- Make the fallback invocation be contingent upon -u xbps succeeding. Note
that the exit status of either will be properly conveyed by the script i.e.
we don't have to capture the exit value there.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes: #202 [via git-merge-pr]
|
| |
|
|
|
|
|
|
|
|
|
| |
Detect if the package is unavailable for the host architecture and pick
the first supported arch.
Packages like bootloaders and kernels for arm boards obviously restrict
`archs=` which might exclude the host's architecture. Therefore xbps-src
couldn't fetch the distfiles without specifying `-a <arch>`.
|
|
|
|
| |
Closes: #199 [via git-merge-pr]
|
| |
|
|
|
|
|
|
|
| |
They're introduced by e0979275b4 (11-pkglint-elf-in-usrshare: allow
explicit setting of exceptions, 2020-07-16)
Closes: #195 [via git-merge-pr]
|
| |
|
|
|
|
|
|
| |
Due to ERE, this also works if the argument starts with ^!.
Fixes #193.
|
|
|
|
|
|
|
|
|
| |
Also:
- Fix some indentation.
- Add notes about -g and -S options in manual
Closes: #194 [via git-merge-pr]
|
|
|
|
|
|
|
| |
These commands were outputting error messages from xdistdir when outside
a void-packages folder, even though the command is supposed to fail silently.
Closes: #190 [via git-merge-pr]
|