summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/installerfw.qdoc41
1 files changed, 39 insertions, 2 deletions
diff --git a/doc/installerfw.qdoc b/doc/installerfw.qdoc
index a937631bd..c126e3467 100644
--- a/doc/installerfw.qdoc
+++ b/doc/installerfw.qdoc
@@ -1228,6 +1228,14 @@
displayname="Example Repository" />
\endcode
+ \c{url} will be used as a base url to resolve an \c{Updates.xml} file against.
+ If \c{url} is itself relative, it will be resolved against the base url of the current document.
+
+ \c{displayname} specifies how the repository should be named in the \gui Settings page
+ of the Maintenance Tool.
+
+ \c{name} and \c{password} optionally specify credentials for a protected repository.
+
\section2 Removing Repositories
To remove a repository, add a \c <Repository> child element to the
\c <RepositoryUpdate> element with the following options:
@@ -1236,15 +1244,44 @@
<Repository action="remove" url="http://www.example.com/repository" />
\endcode
+ \c{url} must match exactly the url that is to be removed.
+
\section2 Replacing Repositories
To replace one repository with another, add a \c <Repository> child element to the
\c <RepositoryUpdate> element with the following options:
\code
- <Repository action="replace" oldurl="http://www.example.com/repository"
- newurl="http://www.example.com/newrepository" name="user" password="password"
+ <Repository action="replace" oldUrl="http://www.example.com/repository"
+ newUrl="http://www.example.com/newrepository" name="user" password="password"
displayname="New Example Repository" />
\endcode
+
+ \c{oldUrl} must match exactly the url that is to be replaced.
+
+ \c{newUrl} must match exactly the url that is replace to.
+
+ \section1 Relocatable Repositories
+
+ Some projects contain multiple repositories. To create relocatable set
+ of repositories you should use relative paths.
+
+ So if generic repository available at address \c{http://www.example.com/repositories/generic}
+ and \c{Updates.xml} contains \c <Repository> element with the following options:
+
+ \code
+ <Repository action="add" url="../module" name="user" password="password"
+ displayname="Module Repository" />
+ \endcode
+
+ Resolved address of added repository will be \c{http://www.example.com/repositories/module}.
+ So that the repository does not contain information about their absolute location.
+
+ If you want to change the address, you can simply copy a set of repositories as is.
+ It recommended for some time to maintain the old generic repository and replace addresses
+ as described above. You can also provide the updated installer with the new generic address.
+
+ You can use relative path for arguments \c url, \c oldUrl and \c newUrl at
+ \c <Repository> element.
*/
/*!