1 |
Dnia 2014-09-13, o godz. 16:03:31 |
2 |
Jauhien Piatlicki <jauhien@g.o> napisał(a): |
3 |
|
4 |
> Hi, |
5 |
> |
6 |
> 11.09.14 00:20, Michał Górny написав(ла): |
7 |
> > |
8 |
> > I would like to have install-qa-check.d in three main places: |
9 |
> > |
10 |
> > 1. /usr/lib/portage/install-qa-check.d (or alike) for scripts |
11 |
> > installed by Portage and other packages, |
12 |
> > |
13 |
> > 2. /etc/portage/install-qa-check.d for extra scripts installed |
14 |
> > by sysadmin, |
15 |
> > |
16 |
> > 3. ${repo}/metadata/install-qa-check.d for repository-specific |
17 |
> > QA checks. |
18 |
> > |
19 |
> > The rationale for (3) is quite simple: many of the modern QA checks are |
20 |
> > results of policies specific to Gentoo tree and the eclasses in it -- |
21 |
> > like my recent bash-completion checks (still in review queue). Keeping |
22 |
> > them in Portage is cumbersome, and has some code duplication factor. |
23 |
> |
24 |
> nice idea, +1 from me. |
25 |
> |
26 |
> One question related to (3): am I correct that not only scripts from ${repo}/metadata/install-qa-check.d, but also scripts from the repos that current repo has in masters from metadata/layout.conf will be runned? It means that these scripts will be 'inherited' by repos? |
27 |
|
28 |
Yes, Portage follows masters looking for scripts. Not exactly inherited |
29 |
since with current logic two repos can have a script with the same name |
30 |
and both will be run (however, this may change in the future). |
31 |
|
32 |
-- |
33 |
Best regards, |
34 |
Michał Górny |