Commit Graph

937 Commits

Author SHA1 Message Date
morganamilo
474cc56f8d
Use passToGit() in getCommit() 2018-07-19 18:51:57 +01:00
morganamilo
8427dc3804
Move passToFoo() functions to their own file 2018-07-19 18:48:46 +01:00
morganamilo
473a2de225
Refactor pssToFoo() functions
Previously each call to an external command had two functions.
PassToFoo() and PassToFooCapture(). These functions are always similar
and end up with duplicated code.

So instead have the passToFoo() functions return the cmd itself and
create small helper functions show() and capture() which will run the
command and either forward it to std{out,err,in} or capture the output

Also the saveVCSInfo() function which was called after every makepkg
call is now only called after the pacman -U succeeds.
2018-07-19 18:37:28 +01:00
Anna
6e41ef882b
Merge pull request #566 from Morganamilo/fix#564
Fixup FAQ and manpage typo
2018-07-19 17:52:53 +01:00
morganamilo
526cec70ed
Fix typo in man page 2018-07-19 17:50:30 +01:00
morganamilo
6313c14382
Add editing pkgbuild dependencies to the FAQ 2018-07-19 17:50:16 +01:00
morganamilo
a576dbc1fd
Mention --save in --combinedupgrade FAQ 2018-07-19 17:31:22 +01:00
Anna
c10716ab1a
Merge pull request #559 from Morganamilo/install
Show .install files with pkgbuilds when editing
2018-07-19 17:23:03 +01:00
morganamilo
d4d36397fe
Show .install files with pkgbuilds when editing 2018-07-18 09:24:57 +01:00
Anna
ac19616bc3
Merge pull request #558 from Morganamilo/typo
Fix typo
2018-07-17 22:57:05 +01:00
morganamilo
9602d4bc79
Fix typo 2018-07-17 22:36:01 +01:00
Anna
a1b5684a2f
Merge pull request #550 from Morganamilo/go-srcinfo2
Update readme, depreciate -Pu and -Pn
2018-07-17 22:10:31 +01:00
morganamilo
46d09f8ab7
Fixup FAQ Section 2018-07-17 22:07:20 +01:00
morganamilo
686e1baaf4
Update readme, depreciate -Pu and -Pn 2018-07-17 22:01:52 +01:00
Ema Panz
6b30e17b67
Update README.md 2018-07-17 18:08:55 +01:00
Anna
fdcc233cbe
Merge pull request #552 from Morganamilo/fix#551
Fix group installs for --nocombinedupgrade
2018-07-16 17:04:46 +01:00
morganamilo
f3635cd14d
Fix group installs for --nocombinedupgrade 2018-07-16 17:03:39 +01:00
Anna
d6b862357d Replace gopkgbuild with go-srcinfo (#528)
* Prefer vercmp over gopkgbuild

* Replace gopkgbuild with go-srcinfo
2018-07-16 15:28:18 +01:00
J Guerreiro
b1fb1b9656
Add flagged out of date FAQ closes #545 2018-07-16 12:06:29 +01:00
Jguer
f8e84658c0
Major version update 2018-07-16 11:35:25 +01:00
Anna
fafaa26d7b
Merge pull request #544 from Morganamilo/nothing
Show nothing to do message for nocombinedupgrade
2018-07-12 11:14:15 +01:00
morganamilo
2437937372
Show nothing to do message for nocombinedupgrade 2018-07-12 11:12:12 +01:00
Anna
595d362ee6
Merge pull request #537 from Morganamilo/fixagain
Fix -Y and remove debug messages
2018-07-06 15:26:09 +01:00
morganamilo
dcaf1e5595
Fix -Y and remove debug messages 2018-07-06 15:24:03 +01:00
J Guerreiro
a06c21d875
Merge pull request #535 from Morganamilo/fix#534
Properley seprate aur and repo targets.
2018-07-06 00:39:09 +01:00
morganamilo
8dd0d97ae0
Properley seprate aur and repo targets.
When not doing combined upgrade the repo targets need to be extracted
for the early pacman call.
2018-07-05 22:20:18 +01:00
Anna
18bbc983c9
Merge pull request #532 from Morganamilo/support-singed
Support source URLs that contain ? again
2018-07-05 01:59:06 +01:00
morganamilo
d627df7288
Support source URLs that contain ? again
Turns out the query part of a source url can be dirrectly after the URL
or after the # fragment. So the branch needs to be stripped too.
2018-07-05 01:58:34 +01:00
Anna
1e0ad92dd1
Merge pull request #531 from Morganamilo/support-singed
Support source URLs that contain ?
2018-07-04 15:34:39 +01:00
morganamilo
b46b111c07
Support source URLs that contain ?
Since pacman 5.1 makepkg supports  ? to signal some stuffg in
a similar way to #. Cut this out so URLs with ? no longer fail.
2018-07-04 15:29:54 +01:00
Anna
b46b005ed7
Merge pull request #530 from Morganamilo/removeyu
Also remove -u when not doing combined upgrade
2018-07-04 14:56:51 +01:00
morganamilo
43c52c69d2
Also remove -u when not doing combined upgrade
When not doing combined upgrade we do pacman -Syu early. So there is no
need to use -u when installing repo dependencies of AUR packages.
2018-07-04 14:54:24 +01:00
J Guerreiro
a97034fc8b
Merge pull request #524 from AlexWayfer/support_commas_in_parse_number_menu
Support commas in parserNumberMenu
2018-07-02 16:40:05 +01:00
Alexander Popov
6eded7c4a3
Support commas in parserNumberMenu 2018-07-02 18:21:00 +03:00
J Guerreiro
61c7e19a0c
Merge pull request #526 from MorphBonehunter/master
run pacman -Qk(k) as root
2018-07-02 16:20:25 +01:00
Daniel Wendler (@cassandra)
fef91ab371 run pacman -Qk(k) as root
fixes #525
2018-07-02 14:15:57 +02:00
Anna
3406575f9d
Merge pull request #521 from Morganamilo/nativecompletion
Add bash and zsh completion for new flags
2018-07-01 17:28:44 +01:00
morganamilo
4f1a46eed8
Add bash and zsh completion for new flags 2018-07-01 17:21:54 +01:00
J Guerreiro
9f9a10e8f4
Merge pull request #520 from Jguer/fix-Docs
Fix invalid uppercasing in flags
2018-07-01 14:54:27 +01:00
Jguer
89b5a1b798
Fix invalid uppercasing in flags
Signed-off-by: Jguer <me@jguer.space>
2018-07-01 14:53:48 +01:00
J Guerreiro
664e9c7808
Merge pull request #519 from Jguer/fish
Add fish native pacman completions
2018-07-01 14:45:29 +01:00
Anna
38f9df54fd
Merge pull request #518 from Morganamilo/docnativepacman
Document --[no]useask and --[no]combinedupgrade
2018-07-01 14:40:17 +01:00
morganamilo
a91dc9e557
Document --[no]useask and --[no]combinedupgrade 2018-07-01 14:35:01 +01:00
Jguer
52f5c8878f
Add native pacman completions
Signed-off-by: Jguer <me@jguer.space>
2018-07-01 11:59:25 +01:00
Anna
38b4e2bec7
Merge pull request #516 from Morganamilo/combine
Separate Pacman upgrade and AUR Upgrade by default
2018-07-01 00:23:45 +01:00
morganamilo
3bdb534321
Separate Pacman upgrade and AUR Upgrade by default
Currently When performing a system upgrade, Yay will first refresh the
database then perform the repo and AUR upgrade. This allows Yay to add
some features such as better batch interaction, showing potential
dependency problems before the upgrade starts and combined menus
showing AUR and repo upgrades together.

There has been discussion that this approach is a bad idea. The main issue
people have is that the separation of the database refresh and the upgrade
could lead to a partial upgrade if Yay fails between the two stages.

Personally I do not like this argument, there are valid reasons to Yay
to fail between these points. For example there may be dependency or
conflict issues during the AUR upgrade. Yay can detect these before any
installing actually starts and exit, just like how pacman will when
there are dependency problems.

If Yay does fail between these points, for the previously mentioned
reasons or even a crash then a simple refresh will not cause a
partial upgrade by itself. It is then the user's responsibility
to either resolve these issues or instead perform an upgrade using
pacman directly.

My opinions aside, The discussions on the Arch wiki has reached
a decision, this method is not recommended. So to follow the decided
best practises this behaviour has been disabled by default.

This behaviour can be toggled using the --[no]combinedupgrade flag

It should be noted that Yay's upgrade menu will not show repo packages
unless --combinedupgrade is used.
2018-06-30 03:40:19 +01:00
Anna
77a5cf5c69
Merge pull request #504 from Morganamilo/noask
Remove default usage of --ask
2018-06-24 16:30:28 +01:00
Anna
ae24228aed
Merge pull request #507 from Morganamilo/fix#506
Return when no packages are to be installed.
2018-06-23 16:21:35 +01:00
morganamilo
67817e2a19
Return when no packages are to be installed. 2018-06-23 16:19:25 +01:00
morganamilo
ea5a94e0f8
Remove default usage of --ask
--ask is no longer used when installing AUR packages, instead pass no
confirm when we know there are no conflicts and wait for manual
confirmation when there are.

This means that when there are no conflicts there should be no change in
behaviour and the user will not need to intervene at all.

The old behaviour can still be used with --useask.
2018-06-22 15:17:34 +01:00