summaryrefslogtreecommitdiffstats
path: root/debian/patches/moreIconsDialog-accesses-internet.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:55:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:55:35 +0000
commit0e05dd0e4d67d88ca51780dafe4029744269e6fa (patch)
treeb49073fa569d8d4fbcc7002cf4df72fa840780c1 /debian/patches/moreIconsDialog-accesses-internet.diff
parentAdding upstream version 4:24.2.0. (diff)
downloadlibreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.tar.xz
libreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.zip
Adding debian version 4:24.2.0-1.debian/4%24.2.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/moreIconsDialog-accesses-internet.diff')
-rw-r--r--debian/patches/moreIconsDialog-accesses-internet.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/moreIconsDialog-accesses-internet.diff b/debian/patches/moreIconsDialog-accesses-internet.diff
new file mode 100644
index 0000000000..9a8f18517f
--- /dev/null
+++ b/debian/patches/moreIconsDialog-accesses-internet.diff
@@ -0,0 +1,21 @@
+diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx
+index f0dedf626acf..ec330b584acd 100644
+--- a/cui/source/dialogs/AdditionsDialog.cxx
++++ b/cui/source/dialogs/AdditionsDialog.cxx
+@@ -276,9 +276,13 @@ SearchAndParseThread::SearchAndParseThread(AdditionsDialog* pDialog, const bool
+ , m_bIsFirstLoading(isFirstLoading)
+ {
+ // if we are running a UITest, e.g. UITest_sw_options then
+- // don't attempt to downloading anything
+- static const bool bUITest = getenv("LIBO_TEST_UNIT");
+-
++ // don't attempt to downloading anything. Use AUTOPKGTEST_TMP in Debian
++ // so that the test actually is run in autopkgtest where we are sure
++ // we have internet (needs-internet)
++ static bool bUITest;
++ if (getenv("AUTOPKGTEST_TMP")) { bUITest = true; }
++ else { bUITest = false; }
++
+ m_bUITest = bUITest;
+ }
+