Commit graph

711 commits

Author SHA1 Message Date
morganamilo
99c7b5bb44
Update man page and tweak usage 2018-04-23 02:24:23 +01:00
Jguer
84569ef6d9 Fix completions from using wrong path. Regression introduced in filepath join
Signed-off-by: Jguer <me@jguer.space>
2018-04-21 16:43:12 +01:00
Anna
780f656531
Merge pull request #362 from Morganamilo/fix#359
Prefix aur/ to aur updates
2018-04-17 20:16:35 +01:00
Anna
2d559b874a
Merge pull request #361 from Morganamilo/fixup2
Remove duplicate cmd.Run()
2018-04-17 20:15:03 +01:00
morganamilo
55e7ed8ef7
Remove duplicate cmd.Run()
There was a duplicate cmd.Run() that somehow went unnoticed. It was also
missing an error check, so it was in the code but had no ill effects.
In 86bfacd253 the error check was added.
This caused it to fail every time sure to the cmd already being ran.

Remove the duplicate cmd.Run() altogether.
2018-04-17 20:14:16 +01:00
morganamilo
8ccb5de6ac
Prefix aur/ to aur updates 2018-04-17 19:54:44 +01:00
Anna
5fb61731a3
Merge pull request #360 from Morganamilo/fixup
Small fixups
2018-04-17 18:26:40 +01:00
morganamilo
440004a80c
Fix exist sometimes being false for flags 2018-04-17 18:24:39 +01:00
morganamilo
63471b9ede
Fix misspellings and typos 2018-04-17 18:01:34 +01:00
morganamilo
86bfacd253
Remove unneeded vars and fix missing err check 2018-04-17 17:57:02 +01:00
morganamilo
72eaf6f582
gofmt -s 2018-04-17 17:54:22 +01:00
Anna
6118a9f8b6
Merge pull request #358 from Morganamilo/rmtest
Remove test for formatKeysToImport()
2018-04-17 14:28:43 +01:00
morganamilo
8305631b1d
Remove test for formatKeysToImport()
The recent changes to formatting broke this test. While it would be easy
to go back and fix it, I personaly do not like tests that rely on things
such as formatting or an internet connection. This is why I have removed
the test, I believe the other test for key importing should be more that
sufficient.
2018-04-17 14:24:30 +01:00
Morgana
44ce849cb0
Merge pull request #355 from Morganamilo/fix#354
Add support for -Sc
2018-04-17 13:54:14 +01:00
morganamilo
14454875c5
Update manpage for -Sc 2018-04-17 13:53:37 +01:00
morganamilo
6ab876258b
Updated vendor dependencies 2018-04-17 13:53:37 +01:00
morganamilo
683890c1b8
Add support for -Sc
-Sc will delete cached AUR data from Yay's build dir according to
the `CleanMethod` specified in the Pacman config file.

-Scc will delete all cached AUR data.

Additionally -Sc will also delete all untracked files in the AUR cache.
This will delete things such as downloaded sources and built packages
but will leave directories behind.

This is very usefull because the only reason a directoiry should exist
in the cache is because of downloaded VCS sources. Non VCS sources are
redownloaded every update because when a new version is released a new
tarball has to be downloaded. But VCS sources are never redownloaded,
updates are simply pulled. For this reason the user probably wants to
keep this data as it is still usefull even after building and installing
a package.
2018-04-17 13:53:37 +01:00
morganamilo
ef5fda0264
Hanlde double args of mixed short and long types
99% of the time if a user wants to pas an argument twice they would do
`-cc` or `--clean --clean`. Still doing `-c --clean` is still a valid
thing to do. This commits allows getArg() to this properly.
2018-04-17 13:53:37 +01:00
J Guerreiro
dccfcb6c69
Merge pull request #357 from AlexWayfer/add_tests_for_upgrade_highlighting
Add more tests for upgrade highlighting
2018-04-17 13:11:43 +01:00
Alexander Popov
6689198623
Add more tests for upgrade highlighting
They are based on `_`, which faced in the `google-musicmanager`
2018-04-17 10:25:21 +03:00
Morgana
a79562677d
Merge pull request #356 from Morganamilo/fix#353
Use filepath.Join() for adding paths together
2018-04-17 02:07:45 +01:00
morganamilo
110a905a0c
Use filepath.Join() for adding paths together 2018-04-17 01:32:31 +01:00
Jguer
bab050a354 Update const var
Signed-off-by: Jguer <me@jguer.space>
2018-04-16 14:17:14 +01:00
Jguer
cfd244f377 Add missing entries
Signed-off-by: Jguer <me@jguer.space>
2018-04-16 14:13:11 +01:00
Jguer
0216b116f4 Fix typos and lint
Signed-off-by: Jguer <me@jguer.space>
2018-04-16 14:13:11 +01:00
morganamilo
cf47746d20 Use git clone for pkgbuild downloading
Use git clone over tarballs for pkgbuild downloading during -S. This
option can still be toggled using the config flags.

The config option for selecting clone or tarball will be overiden if an
existing package is cached. The method used to download the package
perviously will be used regardless of the config.
2018-04-16 14:12:02 +01:00
morganamilo
6d876a738c Add --gitflags and --[no]gitclone flags 2018-04-16 13:42:15 +01:00
Morgana
55fe22c430
Merge pull request #352 from Morganamilo/fix#351
Dont bump pkgver() while downloading sources
2018-04-16 00:21:17 +01:00
morganamilo
694c74f5b4
Remove no longer needed function and lint 2018-04-16 00:18:01 +01:00
morganamilo
24f596959d
Dont bump pkgver() while downloading sources
Previously we ran pkgver() right after dowloading sources. This is
a problem because prepare() should be called and all dependencies
should be installed before pkgver().

Instead bump the pkgver while building then get the new pkgver used for
install. Previously we parsed `makepkg --printsrcinfo` to get the new
version. Insead use `makepkg --packagelist` as it is much faster.
2018-04-16 00:17:56 +01:00
J Guerreiro
aa649d9b41
Merge pull request #349 from Morganamilo/fix#331
Lots of formatting tweaks
2018-04-12 15:40:22 +01:00
Morgana
0229ec0861
Merge pull request #350 from Morganamilo/fix#346
Support entering package name during askCleanEdit
2018-04-12 13:17:40 +01:00
morganamilo
ac571d314a
Support entering package name during askCleanEdit 2018-04-12 13:01:54 +01:00
morganamilo
c75bfe4947
Ask if user wants to contunue right after askedit 2018-04-11 20:23:43 +01:00
morganamilo
06406d7cee
More formatting tweaks
Ensure aurWarnings will always be printed out in one block
use '->' for printing aur warnings and ignored upgrades
use '->' for conflict printing
use '->' for key importing
Say PGP keys not GPG keys
Add back green for input prompts
Use 4 spcaces over \t
2018-04-11 20:23:43 +01:00
morganamilo
191b5ebe47
Make colours more consistent and less ott
Use yellow ==> for warning messages
Keep white text no matter the colour of ==>
Use cyan for pkgname printing like it already is in places
2018-04-11 20:23:43 +01:00
Jguer
0aae012eb5 Update Readme
Signed-off-by: Jguer <me@jguer.space>
2018-04-11 11:34:31 +01:00
Morgana
53a31c2437
Merge pull request #348 from Morganamilo/fix#347
Don't mark repo upgrades as deps during sysupgrade
2018-04-11 05:36:52 +01:00
morganamilo
906748ebde
Don't mark repo upgrades as deps during sysupgrade
Before `yay -Syu` called `pacman -Sy <pkgs to upgrade>`
We then later switched to it calling `pacman -Syu` this lead to yay
seeing no targets to when it was upgrading a bunch of packages it
assumed they must be deps. Correct this by adding repo packages to the
targets list.

Also ensure we dont mark packages as dependencies if they are already
installed. For example we install `foo` which requires `bar>5` but we
only have `bar=4` installed. In this case installing `foo` will pull bar
in as a dependency but it should not be marked as such because it
already exists.
2018-04-11 05:35:44 +01:00
Morgana
960109d513
Merge pull request #345 from Morganamilo/fix#343
Support flags when using the editor
2018-04-09 21:09:47 +01:00
morganamilo
60b111545a
Tweak editor input loop
New line before output
Use less bold
Highlight editor and visual variables
Use cyan for highlighting
Use arrow prefix
Use loop instead of goto
2018-04-09 21:04:57 +01:00
morganamilo
f1e98e45a6
Support flags when using the editor
Added --editorflags alongside --editor
$VISUAL and $EDITOR are split on whitespace
2018-04-09 20:50:18 +01:00
Morgana
13ef6f66ab
Merge pull request #275 from ratorx/master
Recursively remove dependencies when using yay -Yc
2018-04-09 17:01:00 +01:00
Morgana
2aaf5f8694
Merge pull request #329 from AlexWayfer/improve_versions_output
Highlight diff between old and new versions better
2018-04-09 16:15:40 +01:00
Jguer
0026701888 Update README for release
Signed-off-by: Jguer <me@jguer.space>
2018-04-09 12:33:57 +01:00
Jguer
bc9439b26e Merge branch 'Morganamilo-fix#337' 2018-04-09 12:24:34 +01:00
Jguer
0507bebee9 Merge branch 'fix#337' of https://github.com/Morganamilo/yay into Morganamilo-fix#337 2018-04-09 12:22:37 +01:00
J Guerreiro
0c7ae56301
Merge pull request #341 from Jguer/fish
add fish completions
2018-04-09 12:21:43 +01:00
Jguer
adbc47a4f9 add fish completions
Signed-off-by: Jguer <me@jguer.space>
2018-04-09 12:20:51 +01:00
J Guerreiro
6ad06696d9
Merge pull request #339 from Morganamilo/doc2
Document fcf0ee34d1
2018-04-09 12:08:47 +01:00