From: Debian LibreOffice Maintainers Date: Sat, 27 Jan 2024 13:25:02 +0000 (+0000) Subject: moreIconsDialog-accesses-internet X-Git-Tag: archive/raspbian/4%24.2.5-1+rpi1~2^2^2^2^2^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=44e1d161eece4fc990cb23b80cc575136c736ed3;p=libreoffice.git moreIconsDialog-accesses-internet Gbp-Pq: Name moreIconsDialog-accesses-internet.diff --- diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index f0dedf626ac..3bd5b1e3b8a 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; }