1 |
On 03/31/2010 01:52 PM, Sebastian Pipping wrote: |
2 |
> On 03/31/10 22:42, Zac Medico wrote: |
3 |
>> Well, it works fine when not called for the same $CATEGORY/$PN, and |
4 |
>> even for the same $CATEGORY/$PN it works fine for other slots it |
5 |
>> they happen to be installed. |
6 |
> |
7 |
> Good point. So the check would be: |
8 |
> |
9 |
> Deny calling has_version if all of: |
10 |
> - in postinst stage |
11 |
> - same category and package |
12 |
> - same slot |
13 |
> |
14 |
> How about that? |
15 |
|
16 |
Yeah, but the "same slot" thing is a little ambiguous since the |
17 |
given atom could possibly match multiple slots that include the one |
18 |
whose postinst is currently running. So, I'd make has_version |
19 |
generate a QA warning if has_version is called there and the given |
20 |
atom only matches the one whose postinst is currently running. |
21 |
-- |
22 |
Thanks, |
23 |
Zac |