Commit Graph

264 Commits

Author SHA1 Message Date
jguer
9fd6917bc0
fix(alpm): transfer handle initialization to executor 2020-08-16 23:41:55 +02:00
jguer
8165174462
fix(dbExecutor): move dbExecutor to runtime config 2020-08-16 23:41:55 +02:00
jguer
ad9bc9ef8f
feat(db): abstract db ops need for dep 2020-08-16 23:41:55 +02:00
Feresey
0adda5da4f Fix issues 2020-08-08 17:00:18 +01:00
jguer
8074179112
style(filter): make filtering names more relevant 2020-07-27 01:24:28 +02:00
jguer
991c5b4146
style(parser): simplify ignore option adding 2020-07-26 23:48:33 +02:00
jguer
de92f24ce5
style(parser): simplify option creation 2020-07-26 23:40:21 +02:00
jguer
7dd5d7e13e
fix(parser): fix ignores getting... ignored 2020-07-26 23:00:28 +02:00
jguer
45d7da4df6
fix(tests): move runes test to text package 2020-07-24 23:24:53 +02:00
jguer
42f337f2a5
fix(pgp): package key importing 2020-07-11 00:48:30 +02:00
jguer
054a9ac613
refactor(dep): package dep 2020-07-10 02:36:45 +02:00
jguer
e47c9584c1
fix(format): gofumt files 2020-07-08 03:40:50 +02:00
jguer
a0cff2b622
fix(cmdArgs): reorder args 2020-07-08 03:31:35 +02:00
jguer
7a32ffdd37
fix(cmdArgs): deglobal cmd args 2020-07-08 03:22:01 +02:00
jguer
93719d488c
fix(deps): update parser method 2020-07-07 01:46:39 +02:00
Jonas Bögle
71929cb225
ignore dependency checks on double --nodeps 2020-07-07 01:43:22 +02:00
jguer
2f88858ce6
fix(parser): squash globals into options 2020-07-06 02:02:12 +02:00
jguer
56760e1b7c
fix(parser): add support for stackable parameters. Fixes #1155, Fixes #1280 2020-07-06 00:28:04 +02:00
jguer
36730a41e3
fix(config): package alpmHandle into runtimeSettings 2020-07-05 16:58:35 +02:00
jguer
968b61ac57
fix(config): pack pacmanConf into runtime 2020-07-05 15:34:27 +02:00
jguer
9b49f76bbd
fix(config): vcs filepath fix 2020-07-05 09:36:27 +02:00
jguer
2dc01d8a3e
fix(init): refactor init to use runtime 2020-07-05 09:36:27 +02:00
jguer
fb5b6b74fe
fix(parser): package parser 2020-07-05 09:36:27 +02:00
jguer
cb8a988701
fix(news): package news and begin settings 2020-07-05 09:36:27 +02:00
Giftpflanze
fff9d74764 Fix "%s is up to date -- skipping" message formatting 2020-07-05 09:35:52 +02:00
jguer
d0450179f9
fix(usecolor): usecolor belongs to text. remove deprecated 2020-06-26 09:03:45 +02:00
jguer
d003e96e07
fix(ci): fix env propagation
fix broken ci artifact download
2020-06-13 19:49:57 +02:00
jguer
732f1a5412
feat(localization): wrap all translatable strings 2020-05-05 19:21:42 +02:00
jguer
9fccdcb30f
fix(ci): implement stricter linting settings 2020-05-02 16:17:20 +02:00
Ferdinand Bachmann
023c742490 install.go: check if packages exist before trying to install them
Sometimes *-debug packages generated by makepkg are listed in
`makepkg --packagelist`, but are not built when running `makepkg`.

This is the case when no debug info sections could be found in the package,
which is often the case for `python-*` packages, like `python-bashlex`.
--
2020-05-01 17:59:58 +02:00
Ferdinand Bachmann
4f35c2c4fe install.go: swap if branches for readability 2020-05-01 17:59:58 +02:00
Ferdinand Bachmann
873b2db591 install.go: fix linter failure
(personal note: I don't believe this helps readability in this case,
"fixing" this to allow merge checks to pass)
2020-05-01 17:59:58 +02:00
Ferdinand Bachmann
328c561230 install.go: also install *-debug packages if built by makepkg
fixes #1190
2020-05-01 17:59:58 +02:00
morganamilo
ab956ea3d2
Hide warnings for ignored packages 2019-11-11 07:15:27 +00:00
morganamilo
f2959922a7
Remove tar support
tar is slower and harder to diff. I doubt any one still uses it intentially.

There's a chance some people have not cleared their cache in two years
and still have tar based packages around. But forcing them to clear
their cache is not a big deal at all.
2019-11-11 02:57:14 +00:00
morganamilo
3c996e5235
Ignore errors while diffing
std{out,err} all passed to the call so errors should print just as
before, the only difference is now yay will not abort after an error
occurs. We always provide a confirmation dialog after viewing diffs so
this should be safe.
2019-11-03 07:01:51 +00:00
morganamilo
b60a888981
Simplify stringset function names
Now that stringset has its own module we can use more basic function
names while keeping it obvious what it does.
2019-10-16 23:18:04 +01:00
morganamilo
dacd77012c
Move multierror to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo
cff358d5d6
Move intrange to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo
f2579f26a3
Move stringset to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo
4d91acc749
Re-add --batchinstall and fix dep issues 2019-10-16 20:59:52 +01:00
Jguer
c180fa8d19
PkgbuildDiffs use MultiError now to accumulate errors instead of breaking execution at any error 2019-10-13 23:23:55 +01:00
Jguer
a591b33262
Add errguards throughout the code to enable golangci-lint 2019-10-13 20:56:27 +01:00
Loic Reyreaud
7ee206f36e
Implement proper diff display
As raised in #994, diff display was not proper when interrupting during
download or diff review.

This commit introduce:
- Add a ref in the git tree named "YAY_DIFF_REVIEW" which is set to the last
diff reviewed by the user.
- Change the function displaying diff to user to make proper use of this
new ref. If the ref does not exist in the git tree, it will display the
diff from origin to HEAD@{upstream}.
- Add a function updating the YAY_DIFF_REVIEW after it has been reviewed
by user. It uses the `toDiff` list in the `install` function.
- Add utils function related to handling this change in download.go.

This change only consider diff reviewed to update the YAY_DIFF_REVIEW ref.
If a user does not enable review, the ref will not be updated and the
user will be prompted for review when he enables diff review.

Signed-off-by: Loic Reyreaud <reyreaud.loic@gmail.com>
2019-10-07 13:59:17 +02:00
Jguer
bf89b3383c
Move IntRange definition to types package 2019-10-05 19:23:13 +01:00
Jguer
b01790f752
Moved StringSet definition to types package 2019-10-05 18:39:31 +01:00
Jguer
9e205eef4b
Move MultiError to types package 2019-10-05 17:35:46 +01:00
Jguer
5fa3557817
Store completions in yay's cache folder instead of build directory 2019-10-05 02:10:15 +01:00
Jguer
c5c2e906d3
Move completion to submodule 2019-10-05 02:02:30 +01:00
Jguer
2214bc0cb2
Revert "Merge pull request #778 from Morganamilo/group-transactions"
This reverts commit 6cd47dd83c, reversing
changes made to 16fddae8b6.

Signed-off-by: Jguer <me@jguer.space>
2019-10-04 19:42:17 +01:00