eutils.eclass: Show death notice only when user patches were really applied
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 31 Aug 2016 16:39:57 +0000 (18:39 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 31 Aug 2016 16:39:57 +0000 (18:39 +0200)
commitf7d866b62b7040b98e1bd81257f506dbc417672f
tree9b63f0846fd6946c5edede9809bb466d418122b1
parent578d1b9de64e9bc6e7594a37fa22fe94d5a8113f
eutils.eclass: Show death notice only when user patches were really applied

As part of the user requested feature from [Gentoo-Bug #543878]
eutils.eclass shows a warning regarding user applied patches in case of an
error [Link 1].

However this warning will always be shown even if no user patch were
applied at all (example: empty /etc/portage/<cat>/<pkg> directory).

This commit adds a new global variable "EPATCH_N_APPLIED_PATCHES" which
tracks the number of applied user patches. This allows us to only show the
notice when user patches were really applied.

Link: https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?r1=1.443&r2=1.444
Gentoo-Bug: https://bugs.gentoo.org/543878
eclass/eutils.eclass