1 |
On 09/29/2014 05:12 PM, Bertrand SIMONNET wrote: |
2 |
> +.I Example: |
3 |
> +.nf |
4 |
> +# By setting INSTALL_MASK in bashrc/nostandardconf.conf, we can avoid installing |
5 |
> +# the standard configuration and enable another package to install it. |
6 |
> +net-misc/dhcp nostardardconf.conf |
7 |
|
8 |
In order to ensure that INSTALL_MASK set via bashrc will always works as |
9 |
intended, you'll have to modify the INSTALL_MASK logic inside the |
10 |
dblink.treewalk method: |
11 |
|
12 |
if self.settings.get("INSTALL_MASK") or \ |
13 |
"nodoc" in self.settings.features or \ |
14 |
"noinfo" in self.settings.features or \ |
15 |
"noman" in self.settings.features: |
16 |
# Apply INSTALL_MASK before collision-protect, since it may |
17 |
# be useful to avoid collisions in some scenarios. |
18 |
phase = MiscFunctionsProcess(background=False, |
19 |
commands=["preinst_mask"], phase="preinst", |
20 |
scheduler=self._scheduler, settings=self.settings) |
21 |
phase.start() |
22 |
phase.wait() |
23 |
|
24 |
We could simply run the preinst_mask function unconditionally here, |
25 |
since we can't tell whether or not the bashrc contains an INSTALL_MASK |
26 |
setting. |
27 |
-- |
28 |
Thanks, |
29 |
Zac |