From 4fdc79354789692fb6665db4f1826f63a1b8aa1d Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Fri, 27 Sep 2024 17:38:49 +0200 Subject: [PATCH] moreIconsDialog-accesses-internet Gbp-Pq: Name moreIconsDialog-accesses-internet.diff --- cui/source/dialogs/AdditionsDialog.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index 3f57676a13e..e6614759e24 100644 --- a/cui/source/dialogs/AdditionsDialog.cxx +++ b/cui/source/dialogs/AdditionsDialog.cxx @@ -277,9 +277,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") == NULL) { bUITest = true; } // don't disable test + else { bUITest = false; } + m_bUITest = bUITest; } -- 2.30.2