summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-05-27 15:58:22 -1000
committerSam Bingner <sam@bingner.com>2019-05-27 15:58:51 -1000
commit25745dd37ec53d28cab8226cf7e45e7fe4f408b5 (patch)
treecd444b45eca72a7646318195ebfdfb386381179c
parent1d744444486fc66c8f12e2a8f0e81773a65bf545 (diff)
Use apt 1.4.9
-rw-r--r--.gitmodules3
-rw-r--r--apt.h9
m---------apt640
3 files changed, 4 insertions, 8 deletions
diff --git a/.gitmodules b/.gitmodules
index 4c03b69..7846fdb 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -10,3 +10,6 @@
[submodule "apt-legacy"]
path = apt32
url = git://git.saurik.com/apt-legacy.git
+[submodule "apt64"]
+ path = apt64
+ url = git://git.bingner.com/apt.git
diff --git a/apt.h b/apt.h
index c00968c..6971dcd 100644
--- a/apt.h
+++ b/apt.h
@@ -2,14 +2,7 @@
#define APT_H
#include <unistd.h>
-
-template <typename Type_>
-Type_ *memrchr(Type_ *data, int value, int size) {
- for (int i = 0; i != size; ++i)
- if (data[size - i - 1] == value)
- return data + size - i - 1;
- return 0;
-}
+#define DPKG_DATADIR "/usr/share/dpkg"
template <typename Type_>
static Type_ *strchrnul(Type_ *s, int c) {
diff --git a/apt64 b/apt64
-Subproject fb97f9603ada7961f30b123962a11981aee475a
+Subproject bb4b56650746f18f9ea7f821eeb5c3d0cedc997