about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
...
* xuname: avoid "cat abuse" and run awk directly on /proc/cpuinfoJami Kettunen2022-09-121-2/+2
|
* xvoidstrap: allow relative dirs, add aarch64 mirrorclassabbyamp2022-09-081-4/+3
|
* _xtools: complete properties for xpkgdiff -pclassabbyamp2022-09-041-1/+1
|
* xpkgdiff: improve cross functionalityclassabbyamp2022-09-043-8/+44
| | | | | adds `-R` and `-a` to make it easier to handle cross, but still support setting XBPS_TARGET_ARCH directly.
* xpkgdiff: clean up even on errorclassabbyamp2022-09-021-4/+8
|
* xlint: check if vopt_if can be vopt_boolclassabbyamp2022-08-131-0/+1
| | | | | | fixes #257 Closes: #258 [via git-merge-pr]
* xgensum: use getopts for argument parsing, update completionsclassabbyamp2022-08-132-19/+20
| | | | Closes: #256 [via git-merge-pr]
* xlint: add disable_parallel_check to variable listclassabbyamp2022-06-301-0/+1
|
* Revert "xlint: lint multi-line value indentation"Leah Neukirchen2022-06-251-17/+0
| | | | | | | 18:59:51 <abby> leah2, can you revert the multiline lint for now, I'm working on a better way but it's too buggy to stay for now This reverts commit 16e6e3e9852c988b5bf0b416fabaeaa03588696f.
* xlint: lint multi-line value indentationclassabbyamp2022-06-251-0/+17
| | | | | | | | | | | - use awk because scan (grep) does not work over multiple lines - finds the opening and closing of a variable definition, then checks if it's on the first line and, if not, checks if the first characters are not <space><:graph:> - checks both single- and double-quoted strings, in a loop because shell makes that hard - detects lines in multi-line strings that end in a backslash - `| sort -u -k2` so it does not spam, similar to the other indent lint
* xlint: fix lints broken by extra sedclassabbyamp2022-06-251-3/+2
| | | | bug introduced in 8c0e21060fd0abdb16c10d62a56ead0a4da75062
* xlint: require specifying versions when using cargo updateJan Christian Grünhage2022-06-181-0/+2
| | | | Closes: #249 [via git-merge-pr]
* xvoidstrap: replace alpha.de with repo-defaultclassabbyamp2022-06-141-2/+2
|
* xuname: replace alpha.de with repo-defaultclassabbyamp2022-06-141-4/+4
|
* xrecent: replace alpha.de with repo-defaultclassabbyamp2022-06-141-6/+6
|
* xlocate: replace alpha.de with repo-defaultclassabbyamp2022-06-141-1/+1
|
* xlint: make output prefix consistentclassabbyamp2022-05-171-5/+6
| | | | | | | a few lints used the absolute path (`$template`) as prefix instead of `$argument` Closes: #246 [via git-merge-pr]
* xlint: remove print in explain_make_checkclassabbyamp2022-05-171-1/+1
| | | | | | | | | | | | | | | | | 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]
* xlint: escape slashes in scan() msg to prevent sed errorsclassabbyamp2022-05-171-1/+1
| | | | Closes: #244 [via git-merge-pr]
* xlint: check if manually defined wrksrc is defaultclassabbyamp2022-05-171-1/+8
| | | | | | | also add a regex_escape filter to reduce false-positives in a couple places Closes: #242 [via git-merge-pr]
* xlint: detect space before tabsLeah Neukirchen2022-05-161-0/+1
|
* xlint: deduplicate $pkgname and $versionclassabbyamp2022-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ```
* xpkgdiff: run an in-memory sync to allow use of XBPS_TARGET_ARCHclassabbyamp2022-05-051-2/+2
| | | | | | 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.
* xlint: show line number of wrongly ordered linePiotr Wójcik2022-05-051-1/+5
|
* xlocate: allow chroot-gitPiotr Wójcik2022-04-261-7/+16
| | | | Closes: #237 [via git-merge-pr]
* xpkgdiff: fix check for package existenceclassabbyamp2022-03-311-1/+1
|
* xlint: fix regexp for explain_make_checkLeah Neukirchen2022-03-281-1/+1
|
* xlint: check make_check comment v0.64Piotr Wójcik2022-03-261-0/+8
| | | | Closes: #220 [via git-merge-pr]
* xlint: reject underscore in versionPiotr Wójcik2022-03-261-1/+1
| | | | Closes: #110 [via git-merge-pr]
* New tool: xpkgdiffclassabbyamp2022-03-253-1/+122
| | | | Closes: #232 [via git-merge-pr]
* xnew: propose adding a changelogtibequadorian2022-02-211-0/+1
|
* xlint: fix bug in previous commitGonzalo Tornaría2022-02-211-3/+6
| | | | | | | | 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.
* xlint: improvements to lint from git indexGonzalo Tornaría2022-02-203-9/+22
| | | | | | - do not leak $tmpfile in output from scan() - indent using tabs - add new options to README
* xlint: add option to lint from git indexGonzalo Tornaría2022-02-201-4/+17
| | | | | | | | | | | | | | 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.
* xlint: check system_accounts underscore prefixPiotr Wójcik2021-10-041-0/+92
| | | | Existing accounts should keep their name.
* xlint: add nofixperms and nocheckperms variablesMichal Vasilek2021-08-261-0/+2
|
* xlint: clarify spaces were usedeater2021-07-121-1/+1
|
* xlint: add X11 to the list of vlicense-required licensesColin Booth2021-06-291-1/+1
| | | | | X11 is a derivative of the MIT license and contains the same license installation requirements.
* xlint: drop obsolete variable "only_for_archs"Leah Neukirchen2021-06-251-2/+0
|
* xnew: use $VISUAL as well as $EDITORLeah Neukirchen2021-06-071-1/+1
| | | | Closes #212.
* xlint: treat " WITH " as ", " in licenseĐoàn Trần Công Danh2021-05-291-1/+4
| | | | Closes: #211 [via git-merge-pr]
* xi: don't use sudo/doas if uid is 0Piraty2021-05-011-2/+4
| | | | Closes: #208 [via git-merge-pr]
* xi: make file executableLeah Neukirchen2021-05-011-0/+0
|
* xlint: ignore comments v0.63eater2021-02-151-0/+1
| | | | Closes: #177 [via git-merge-pr]
* xlint: allow make_check variable.Érico Rolim2021-02-121-0/+1
| | | | | | | See https://github.com/void-linux/void-packages/commit/2a748e7e6d9727a7e921d6b9a163e0eb17be98b9 Closes: #205 [via git-merge-pr]
* xlint: allow variable no_generic_pkgconfig_linkLeah Neukirchen2020-12-131-0/+1
|
* xi: refactorLeah Neukirchen2020-12-061-25/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* xrs: take XBPS_HOSTDIR into account v0.62Piraty2020-11-181-11/+16
|
* xq: take XBPS_HOSTDIR into accountPiraty2020-11-181-11/+16
|
* xls: take XBPS_HOSTDIR into accountPiraty2020-11-181-11/+16
|