add some notes on how to debug online update from a dev version
Change-Id: I7b4547bfee4ff0bd3bbe7366b6294e925852ce65 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143221 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
0a2abff1b0
commit
c84ffb6114
2 changed files with 9 additions and 1 deletions
|
@ -16,6 +16,12 @@ we have reached the time when we should ask for the update. If yes, asks for
|
||||||
that, and shows the download button in the menu (if the new update is
|
that, and shows the download button in the menu (if the new update is
|
||||||
available).
|
available).
|
||||||
|
|
||||||
|
The update server will decide if there is an update available based on the user-agent
|
||||||
|
string created by UpdateInformationProvider::getUserAgent, the data used there is
|
||||||
|
extracted from instdir/program/versionrc and the update server takes the buildid into
|
||||||
|
account, so to experiment with the updates from a dev version getUserAgent needs
|
||||||
|
to return a recognized id.
|
||||||
|
|
||||||
## OLE Automation Bridge
|
## OLE Automation Bridge
|
||||||
|
|
||||||
A bridge between "OLE automation" and UNO, so you can use UNO services
|
A bridge between "OLE automation" and UNO, so you can use UNO services
|
||||||
|
|
|
@ -365,7 +365,9 @@ OUString UpdateInformationProvider::getUserAgent(bool bExtended)
|
||||||
aUserAgent = aUserAgent.replaceAll("<PRODUCT>", product);
|
aUserAgent = aUserAgent.replaceAll("<PRODUCT>", product);
|
||||||
aUserAgent = aUserAgent.replaceAll("<OPTIONAL_OS_HW_DATA>", aExtended);
|
aUserAgent = aUserAgent.replaceAll("<OPTIONAL_OS_HW_DATA>", aExtended);
|
||||||
SAL_INFO("extensions.update", "UpdateUserAgent: " << aUserAgent);
|
SAL_INFO("extensions.update", "UpdateUserAgent: " << aUserAgent);
|
||||||
|
// if you want to debug online updates from a dev version, then uncommenting this (adjust for platform)
|
||||||
|
// might be helpful
|
||||||
|
// return "LibreOffice 7.3.5.2 (184fe81b8c8c30d8b5082578aee2fed2ea847c01; Linux; X86_64; )";
|
||||||
return aUserAgent;
|
return aUserAgent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue