fix: say offline files are not downloaded

The line mode under --offline, with files that need the internet,
ended on Done with 0 files installed. It now counts them as not
downloaded and says --offline is why, not an answer.
This commit is contained in:
Abdessamad Derraz committed 2026-10-27 00:45:57 +01:00
1 parent 92ee80f40b
commit 7abe5b8309
5 files changed
+16 -12

No files matched your search

+3 -1
View File
@@ -3578,7 +3578,9 @@ class LineModeOffline(unittest.TestCase):
self.assertIn("--offline: only the files found on this machine are installed.", out)
self.assertIn("5 files need the internet, which --offline does not use.", out)
self.assertNotIn("Downloading", out)
self.assertNotIn("failed", out.lower().replace("not failed", ""))
self.assertNotIn("failed", out.lower())
self.assertIn("Nothing installed: 5 files not downloaded, which --offline does not do.",
out.replace("\r\n", " ").replace("\n", " "))
def test_the_data_files_are_counted_before_the_question(self):
files = [{"dest": "a.bin", "size": 1024}]