forked from termux/termux-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0009-update-error-messages.patch
25 lines (25 loc) · 1.2 KB
/
0009-update-error-messages.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -uNr apt-2.3.14/apt-pkg/acquire-item.cc apt-2.3.14.mod/apt-pkg/acquire-item.cc
--- apt-2.3.14/apt-pkg/acquire-item.cc 2022-01-16 10:27:00.000000000 +0200
+++ apt-2.3.14.mod/apt-pkg/acquire-item.cc 2022-01-16 10:28:00.000000000 +0200
@@ -170,6 +170,7 @@
{
std::string m;
strprintf(m, msg, repo.c_str());
+#ifndef __ANDROID__
if (isError)
{
_error->Error("%s", m.c_str());
@@ -181,6 +182,13 @@
_error->Notice("%s", _("Data from such a repository can't be authenticated and is therefore potentially dangerous to use."));
}
_error->Notice("%s", _("See apt-secure(8) manpage for repository creation and user configuration details."));
+#else
+ _error->Error("%s", m.c_str());
+ _error->Notice("%s", _("Metadata integrity can't be verified, repository is disabled now."));
+ _error->Notice("%s", _("Possible causes: unstable or tampered Internet connection, wrong sources.list, outdated keyring or host is down currently."));
+ _error->Notice("%s", _("Please note that all hosting problems or other serious issues we announce on our social media pages."));
+ _error->Notice("%s", _("Use termux-change-repo for switching to a mirror."));
+#endif
return false;
}
/*}}}*/