2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 There are three extensions in various versions:
21 1 version_XXX/plain.oxt has no dependencies and no license.
22 2a version_XXX/dependency.oxt has an unsatisfied dependency and no license.
23 2b version_nodependencies_XXX/dependency.oxt is identical to 2a but without the
25 3 version_XXX/license.oxt has no dependencies and a license.
27 The different versions are:
29 A version_none contains no version element (treated as version "0").
30 B version_badelement contains a bad <version val="1"/> (not allowed by the
31 specification, but treated by the current implementation as version "0").
32 C version_badvalue contains a bad <version value="1.a"/> (not allowed by the
33 specification, but treated by the current implementation as version "1").
34 D version_0.0 contains <version value="0.0"/> (same as version "0").
35 E version_1.2.3 contains <version value="1.2.3"/>.
36 F version_1.2.4.7 contains <version value="1.2.4.7"/>.
37 G version_1.02.4.7.0 contains <version value="1.02.4.7.0"/> (same as version
39 H version_1.2.15.3 contains <version value="1.2.15.3"/>.
41 The total order among the various versions is thus
43 A = B = D < C < E < F = G < H.
47 - If version y of extension e is to be installed and version x < y of
48 extension e is already installed, then
50 will replace x with y.
52 - If version y of extension e is to be installed and version x >= y of
53 extension e is already installed, then
55 will fail with an error message.
57 - If version y of extension e is to be installed and any version x of
58 extension e is already installed, then
60 will replace x with y.
62 - If version y of extension e is to be installed and any version x of
63 extension e is already installed, then
66 soffice "Tools - Package Manager... - Add..."
67 will query with a dialog whether to replace x with y. The dialog will have
68 "OK" (replace) preselected if x < y, and "Cancel" otherwise.
70 - If replacing an installed version x of an extension e with a version y fails
71 because y has unsatisfied dependencies, or because y has a license to which the
72 user does not agree, version x is left installed afterwards.
74 - Checking for already installed versions of an extension is only done within a
75 single layer (unopkg versus unopkg --shared; "My Packages" versus
76 "OpenOffice Packages" in unopkg gui/soffice), not across layers.