moreIconsDialog-accesses-internet
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 10 Jul 2024 17:15:44 +0000 (17:15 +0000)
committerRene Engelhard <rene@debian.org>
Wed, 10 Jul 2024 17:15:44 +0000 (17:15 +0000)
Gbp-Pq: Name moreIconsDialog-accesses-internet.diff

cui/source/dialogs/AdditionsDialog.cxx

index f0dedf626acf0f73d31a3a07c554cae79f678934..3bd5b1e3b8ac86f052732faf0a7aa74f59341510 100644 (file)
@@ -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;
 }