Commit graph

1024 commits

Author SHA1 Message Date
morganamilo
8f3f4b7b98
Give an example of how to update only AUR packages
I've seen `yay -Syua` given as an example all over the place. I'm not
sure if this is left over as a habbit from yaourt. In yay, -a restricts
the upgrade to AUR packages ONLY while I believe in yaourt it means to
also include the AUR.

The problem with `yay -Syua` is that you are doing a database refresh
and then only upgrading the AUR packages. Essencially:

pacman -Sy && update-aur

This is a recipy for partial upgrades.

Either upgrade everything `yay -Syu` or just the AUR `yay -Sua`.
2018-08-05 15:28:06 +01:00
Anna
f62bd9245b
Merge pull request #622 from ZenixTheHusky/Fix-621
Fix panic on invalid version strings
2018-08-05 15:15:42 +01:00
Peter Dyer
8d7ff22fed Fix panic on invalid version strings 2018-08-05 00:25:27 +01:00
Anna
6515a9bf04
Merge pull request #620 from Morganamilo/fixtimeupdate
Fix padding on time update
2018-08-04 14:25:10 +01:00
morganamilo
de59b3911d
Fix padding on time update 2018-08-04 14:24:42 +01:00
Anna
55ca78e74d
Merge pull request #618 from Morganamilo/fix#546
Ensure AUR upgrades actually use the AUR
2018-08-03 23:27:03 +01:00
morganamilo
08ac9036ad
Ensure AUR upgrades actually use the AUR
Yay's dependency resolving takes provides into account. When upgrading
AUR package 'foo', if a repo package provides 'foo' then yay would get
confused and pull in the package providing 'foo' instead of the AUR
package.

This commit ensures AUR upgrades always exclusively check the AUR.
2018-08-03 23:15:01 +01:00
Anna
6c5c6ab8f6
Merge pull request #612 from Morganamilo/accept---
Accept - and -- options
2018-08-02 16:52:58 +01:00
morganamilo
db9ff186d6
Accept - and -- options 2018-08-02 16:51:33 +01:00
Anna
a658851bbb
Merge pull request #611 from Morganamilo/fix#609
Don't show .SRCINFO in diffs
2018-08-02 15:22:46 +01:00
morganamilo
4a254303c5
Don't show .SRCINFO in diffs 2018-08-02 15:21:01 +01:00
Anna
1839b473c2
Merge pull request #610 from Morganamilo/checkargs
Error on unkown args
2018-08-02 15:11:32 +01:00
morganamilo
97006ade19
Support -r=foo syntax 2018-08-02 14:50:56 +01:00
morganamilo
4e67c1e886
Simlify huge case statments
Instead of having true in every case, rely on the lack of fallthrough
causing the default not to trigger.

Moved handleConfig to parser.go
2018-08-02 14:50:56 +01:00
morganamilo
d9823e4230
Error on unkown args
This is simply implemented by looking up against all the args. No
conflicts are checked such as using -Ss and -Si at the same time or using
-u with -D.
2018-08-02 14:50:51 +01:00
Anna
0746d2828b
Merge pull request #601 from xyproto/minor
Only minor changes
2018-08-02 14:10:50 +01:00
Anna
b848514b4b
Merge pull request #585 from Morganamilo/usage
Support Usage in pacman.conf
2018-08-02 13:51:13 +01:00
morganamilo
06a45bad59
Don't return length with queryRepo 2018-07-31 22:01:14 +01:00
morganamilo
dfe7738d6e
Use pacman like text for ignorepkg and newerpkg
Now that we are using alpm to fetch packages it generates these mesages
and we can not control the format. So change out format to match.
2018-07-31 22:01:14 +01:00
morganamilo
42a74c41c5
Show alpm warnings 2018-07-31 22:00:41 +01:00
Anna
714556fd4a
Merge pull request #605 from Morganamilo/fix#604
Ensure devel packages exist when updating
2018-07-31 17:16:01 +01:00
morganamilo
95bcea8f40
Ensure devel packages exist when updating 2018-07-31 16:58:49 +01:00
Alexander F. Rødseth
e9d0b8bee6 Refactor a named return
Ref: 29f3e011ec (diff-0cf3d18277fde705f1a4eb69fddfefc1L407)
2018-07-31 13:11:26 +02:00
Alexander F. Rødseth
345fd552f0 Use main.go from the master branch 2018-07-31 13:08:54 +02:00
Alexander F. Rødseth
29f3e011ec Only minor changes 2018-07-31 11:15:17 +02:00
Anna
892d9cc752
Merge pull request #600 from Morganamilo/completion2
Update completion
2018-07-30 14:30:44 +01:00
Anna
5f107ad7ad
Merge pull request #599 from Morganamilo/unused
Remove unneeded variables
2018-07-30 14:29:54 +01:00
morganamilo
05587c3a1c
Update zsh completion 2018-07-30 14:28:14 +01:00
morganamilo
f9d8d61524
Upbade bash completions 2018-07-30 14:21:49 +01:00
morganamilo
2a60dd7052
Remove unneeded variables 2018-07-30 14:14:16 +01:00
Anna
158e44cb1e
Merge pull request #598 from Morganamilo/newline
Split stdin on new line
2018-07-30 05:03:24 +01:00
Anna
2f755abfed
Merge pull request #594 from Morganamilo/man
Update man page and usage
2018-07-30 05:02:16 +01:00
morganamilo
0503753185
Remove --[no]showdiffs and merge the text 2018-07-30 05:01:03 +01:00
morganamilo
6fe17ad0c1
Update usage 2018-07-30 05:01:03 +01:00
morganamilo
4841642c21
Rework manpage
Give the manpage a cleaner and easier to read and maintain structure.
This refacotrs the raw groff, the formatted output should apear very
similar.
2018-07-30 05:01:03 +01:00
morganamilo
8e1e935d7e
Update man page 2018-07-30 05:01:03 +01:00
morganamilo
b4c102a17a
Split stdin on new line
Pacman 5.1 changed the stdin seperation from whitespace to newline. To
maintain corectness we should also do this.
2018-07-30 01:16:36 +01:00
Anna
bd3e1cd3a9
Merge pull request #596 from Morganamilo/config
Always pass PacmanConf to pacman
2018-07-28 19:57:28 +01:00
morganamilo
5ce740068e
Always pass PacmanConf to pacman
Normaly we only pass --config to pacman if the user specifies it on the
command line. Otherwise we let pacman use it's default config location.

If the user has changed pacmanconf in Yay's config file then this could
cause a miss match between the config we use to init alpm and the config
pacman is using.
2018-07-28 19:54:41 +01:00
Anna
6892ea153f
Merge pull request #595 from Morganamilo/noprogress
Use no-progress when cloning packages
2018-07-28 16:15:34 +01:00
morganamilo
a61eb0d568
Use no-progress when cloning packages
The output is annoying and takes up many lines. All AUR packages clone
extremley fast anyway, making the progress unneeded.
2018-07-28 16:15:01 +01:00
Anna
d9aa50b1f5
Merge pull request #592 from Morganamilo/version
Show alpm version with -V
2018-07-28 03:48:08 +01:00
morganamilo
a54b949670
Show alpm version with -V 2018-07-28 03:45:04 +01:00
J Guerreiro
ccbb5e5923
Merge pull request #591 from Jguer/fish
Add completions to fish for series 900
2018-07-27 12:17:22 +01:00
Jguer
a592d1aa87
Add completions to fish for series 900
Signed-off-by: Jguer <me@jguer.space>
2018-07-27 12:16:21 +01:00
morganamilo
f4aa7f7933
Use alpm_sync_sysupgrade for uprepo
This allows us to support the Upgrade Usage option as well as relying on
alpm's logic instead of coming up with out own.

It is possible that this could lead to showing replaces in the upgrade
menu.
2018-07-26 14:00:08 +01:00
morganamilo
3180c66f39
Use alpm's built in searching for -Ss
This allows us to support the usage option in pacman.conf
This also speeds up the searching
2018-07-26 14:00:08 +01:00
morganamilo
2f975c7157
Update vendored dependencies 2018-07-26 14:00:08 +01:00
Anna
74f4a44da6
Merge pull request #584 from Morganamilo/completion-slow
Rework completion
2018-07-26 13:56:06 +01:00
morganamilo
bc6028348b
Make the completion refresh time configurable
The default setting is 7 days. The user can specify a different time in
days. -1 can be set to never refresh while 0 can be used to always
refresh.
2018-07-26 13:54:13 +01:00