2019-11-13 13:42:45 +01:00
|
|
|
diff -uNr apt-1.4.9/apt-pkg/init.cc apt-1.4.9.mod/apt-pkg/init.cc
|
|
|
|
--- apt-1.4.9/apt-pkg/init.cc 2019-01-18 12:42:07.000000000 +0200
|
|
|
|
+++ apt-1.4.9.mod/apt-pkg/init.cc 2019-11-12 22:55:03.409615793 +0200
|
2017-09-17 20:51:20 +02:00
|
|
|
@@ -51,7 +51,7 @@
|
|
|
|
return vec;
|
|
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
+#ifndef __ANDROID__
|
|
|
|
// pkgInitArchTupleMap - Initialize the architecture tuple map /*{{{*/
|
|
|
|
// ---------------------------------------------------------------------
|
|
|
|
/* This initializes */
|
|
|
|
@@ -116,7 +116,7 @@
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
- /*}}}*/
|
|
|
|
+#endif /*}}}*/
|
|
|
|
|
|
|
|
|
|
|
|
// pkgInitConfig - Initialize the configuration class /*{{{*/
|
|
|
|
@@ -133,6 +133,7 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
Cnf.CndSet("APT::Install-Recommends", true);
|
|
|
|
Cnf.CndSet("APT::Install-Suggests", false);
|
2017-09-17 20:51:20 +02:00
|
|
|
Cnf.CndSet("Dir","/");
|
2015-06-13 01:03:31 +02:00
|
|
|
+ Cnf.CndSet("Acquire::Languages", "none");
|
|
|
|
|
|
|
|
// State
|
2017-09-17 20:51:20 +02:00
|
|
|
Cnf.CndSet("Dir::State", STATE_DIR + 1);
|
|
|
|
@@ -158,9 +159,9 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
Cnf.CndSet("Dir::Etc::trusted", "trusted.gpg");
|
|
|
|
Cnf.CndSet("Dir::Etc::trustedparts","trusted.gpg.d");
|
2017-09-17 20:51:20 +02:00
|
|
|
Cnf.CndSet("Dir::Bin::methods", LIBEXEC_DIR "/methods");
|
|
|
|
- Cnf.CndSet("Dir::Bin::solvers::",LIBEXEC_DIR "/solvers");
|
|
|
|
- Cnf.CndSet("Dir::Bin::planners::",LIBEXEC_DIR "/planners");
|
2015-06-13 01:03:31 +02:00
|
|
|
- Cnf.CndSet("Dir::Media::MountPath","/media/apt");
|
2017-09-17 20:51:20 +02:00
|
|
|
+ Cnf.CndSet("Dir::Bin::solvers::",LIBEXEC_DIR "/solvers");
|
|
|
|
+ Cnf.CndSet("Dir::Bin::planners::", LIBEXEC_DIR "/planners");
|
2015-06-13 01:03:31 +02:00
|
|
|
+ Cnf.CndSet("Dir::Media::MountPath","media/apt");
|
|
|
|
|
2017-09-17 20:51:20 +02:00
|
|
|
// State
|
|
|
|
Cnf.CndSet("Dir::Log", LOG_DIR + 1);
|
|
|
|
@@ -283,8 +284,6 @@
|
|
|
|
return _error->Error(_("Unable to determine a suitable packaging system type"));
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (pkgInitArchTupleMap() == false)
|
|
|
|
- return false;
|
|
|
|
|
|
|
|
return Sys->Initialize(Cnf);
|
|
|
|
}
|