1 |
On Sat, 29 Sep 2012 18:04:59 +0200 |
2 |
Ulrich Mueller <ulm@g.o> wrote: |
3 |
> >>>>> On Sat, 29 Sep 2012, Ciaran McCreesh wrote: |
4 |
> >> d) Require a) for Package managers and b) by tree policy |
5 |
> >> (Postel's Law, brought up by mgorny). Practically, this |
6 |
> >> would mean that repoman would reject "foo-1" as package |
7 |
> >> name, but the rest of Portage would accept it. |
8 |
> |
9 |
> > Postel's Law is what lead to the current state of HTML and |
10 |
> > JavaScript, where everything has to be tested carefully on dozens of |
11 |
> > different browser versions and littered with workarounds. Accepting |
12 |
> > lax input just leads to lax input being provided... |
13 |
> |
14 |
> Providing lax input is not at all Postel's Law, but the opposite of |
15 |
> it. |
16 |
|
17 |
But as you can see from HTML, and all the stuff Portage accepts |
18 |
currently, and from countless other examples, the only way to prevent |
19 |
bad input from being provided is to reject it. Following one half of |
20 |
Postel's law just leads to the other half being violated. |
21 |
|
22 |
> In our case, strict input would be enforced with repoman. |
23 |
|
24 |
Repoman can't parse bash code. |
25 |
|
26 |
-- |
27 |
Ciaran McCreesh |