moreIconsDialog-accesses-internet
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 26 Mar 2025 16:38:59 +0000 (17:38 +0100)
committerRene Engelhard <rene@debian.org>
Wed, 26 Mar 2025 16:38:59 +0000 (17:38 +0100)
Gbp-Pq: Name moreIconsDialog-accesses-internet.diff

cui/source/dialogs/AdditionsDialog.cxx

index a8eabf6d369cb8341f073c1961a7c7563e1293f7..676add18204edad0ea9cc8d97f59131852a04c2e 100644 (file)
@@ -277,9 +277,13 @@ SearchAndParseThread::SearchAndParseThread(AdditionsDialog* pDialog, const bool
     , m_bExecute(true)
     , m_bIsFirstLoading(isFirstLoading)
 {
-    // if we are running a UITest, e.g. UITest_sw_options then
-    // don't attempt to downloading anything
-    m_bUITest = o3tl::IsRunningUITest();
+    if (getenv("AUTOPKGTEST_TMP") != NULL) {
+        m_bUITest = false; // run always in autopkgtest
+    } else {
+        // if we are running a UITest, e.g. UITest_sw_options then
+        // don't attempt to downloading anything
+        m_bUITest = o3tl::IsRunningUITest();
+    }
 }
 
 SearchAndParseThread::~SearchAndParseThread() {}