Commit Graph

1097 Commits

Author SHA1 Message Date
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
morganamilo
9c882614a3
Rework completion
Bash seperates on whitespace, so the fish completion file
actually works for bash and zsh. So remove the concept of shells
entirley and just use the singular aur_sh.cache file.

If for some reason output without the repository data is needed, the
user could always just pipe it into awk like so
`yay -Pc | awk '{print $1}'`. Or perhaps a --quiet option could be added
where yay will strip the output itself.

The completion cache now updates when installing AUR packages. This is
done as a goroutine with no wait groups. This ensures the program will
never hang if there is a problem.

The completion is stil updated during -Pc but as long as an AUR package
has been installed recently it should not need to update.

The cache will now also wait 7 days instead of 2 before refreshing.
A refresh can be forced using -Pcc.
2018-07-26 13:54:10 +01:00
J Guerreiro
0b9e10e697
Demote FAQ question headers
Prevent FAQs from screaming at you
2018-07-26 12:05:50 +01:00
Anna
23417df29f
Merge pull request #588 from muesli/readme-typos
Fixed typos and improved punctuation consistency in README
2018-07-25 15:19:50 +01:00
Christian Muehlhaeuser
e6c2f6f3e3
Fixed typos and improved punctuation consistency in README 2018-07-25 13:58:18 +02:00
Anna
9670b46d7d
Merge pull request #587 from Morganamilo/print
Wrap -Sp
2018-07-25 11:21:10 +01:00
morganamilo
c4fec3dad0
Wrap -Sp
Currently we do not handle -Sp, this leads to yay trying a proper
install and failing. So instead pass it to pacman and exit. Ideally we
would extend -Sp to include AUR packages but for now don't bother.
2018-07-25 11:16:30 +01:00
Anna
96532c0b27
Merge pull request #562 from Morganamilo/#560
Add --makepkgconf
2018-07-24 13:08:21 +01:00
morganamilo
4af671afac
Add --[no]makepkgconf 2018-07-24 13:07:17 +01:00
Anna
f567abe386
Merge pull request #582 from Morganamilo/aururl
Add extra fields to -Si[i]
2018-07-24 13:06:12 +01:00
morganamilo
7c74dc5dec
Use none for empty fields 2018-07-24 13:04:32 +01:00
morganamilo
523c471a45
Add extra fields to -Si[i] 2018-07-24 13:04:32 +01:00
morganamilo
b3a53d613d
Update vendored dependencies 2018-07-24 13:04:07 +01:00
Anna
c8379db0aa
Merge pull request #583 from Morganamilo/Sca
Support --aur/--repo with -Sc
2018-07-24 02:51:27 +01:00
morganamilo
562a21fb4d
Support --aur/--repo with -Sc 2018-07-24 02:49:45 +01:00
Anna
4063cf9282
Merge pull request #580 from Morganamilo/fix-print
Don't print nothing to do every time
2018-07-24 00:17:08 +01:00
morganamilo
0ebaa8a750
Don't print nothing to do every time
When using nocombinedupgrade "there is nothing to do" is printed when
insinstalling repo packages. This is because as far as AUR
installer is concerned, there is nothing to do. Instead only print that
when doing a sysupgrade.
2018-07-24 00:13:34 +01:00
Anna
c0c018f005
Merge pull request #578 from Morganamilo/refactor-continue
Refactor continueTask()
2018-07-23 13:51:29 +01:00
morganamilo
e28f4f3431
Refactor continueTask()
The main reason behind this is for future localisation. yes and no can
be set to the localized equivalent and it should just work.

This Refactor also changes the function in ways which make it much less
confusing.

The param is no longer reversed and changed to a boolean. Before you had
to pass in Yy to get a default of no and vice versa.

The function now retuens false for no and true for yes. Before it would
return true if the default option was choosen.
2018-07-23 13:49:45 +01:00
Anna
a3564ec3a7
Merge pull request #577 from AladW/patch-1
yay.8: typo in --nopgpfetch flag
2018-07-22 00:09:06 +01:00
Alad Wenter
a5a9afd681 yay.8: fix typo in --nopgpfetch 2018-07-22 01:04:22 +02:00
Anna
17c310156c
Merge pull request #576 from Morganamilo/cleanup
Remove unused code, fix typo for -g flag
2018-07-21 18:15:11 +01:00
morganamilo
253d162b5b
Remove unused code, fix typo for -g flag
As it turns out, the times you need root also tend to be the time you
need to manipulate the database. So the needWait() function can be
removed and repllaced by needRoot()
2018-07-21 17:40:32 +01:00
J Guerreiro
f9972da763
Wait for db.lck to become available before starting a db operation (#573)
* Wait for db.lck to become available before starting a db operation

* Fix err!=nil issues and avoid spamming users

* Remove redundant cases

* Remove return
2018-07-21 16:18:19 +01:00
Anna
1d463d1e3f
Merge pull request #575 from Morganamilo/fix#574
Add --{no,ask}removemake
2018-07-21 14:26:52 +01:00
morganamilo
ec48698f35
Add --{no,ask}removemake 2018-07-21 14:20:00 +01:00
Anna
0e5cd51910
Merge pull request #571 from Morganamilo/abort-conflict
Abort ealy when there's conflicts with --noconfirm
2018-07-20 20:53:25 +01:00
morganamilo
1d17940ce9
Abort ealy when there's conflicts with --noconfirm
When using --nouseask, manual intervention is needed to resolve conflicts.
When also useing --noconfirm the install will always fail. So abort
early, before trying to install any AUR packages.
2018-07-20 20:42:47 +01:00