summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-11-24 12:15:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-11-24 14:57:21 +0100
commitc84ffb6114ddb30f474cc87bbd6ad9b591173353 (patch)
tree3335ab7c40ee20108fb8c93357c463a669cfc416 /extensions
parent0a2abff1b0167ce2380e538562755da666c6753b (diff)
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>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/README.md6
-rw-r--r--extensions/source/update/feed/updatefeed.cxx4
2 files changed, 9 insertions, 1 deletions
diff --git a/extensions/README.md b/extensions/README.md
index 94cf2acbebd6..cc32c1f825cb 100644
--- a/extensions/README.md
+++ b/extensions/README.md
@@ -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
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
A bridge between "OLE automation" and UNO, so you can use UNO services
diff --git a/extensions/source/update/feed/updatefeed.cxx b/extensions/source/update/feed/updatefeed.cxx
index 632724118c98..b1bc6851edef 100644
--- a/extensions/source/update/feed/updatefeed.cxx
+++ b/extensions/source/update/feed/updatefeed.cxx
@@ -365,7 +365,9 @@ OUString UpdateInformationProvider::getUserAgent(bool bExtended)
aUserAgent = aUserAgent.replaceAll("<PRODUCT>", product);
aUserAgent = aUserAgent.replaceAll("<OPTIONAL_OS_HW_DATA>", aExtended);
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;
}