diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-10 12:23:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-10 12:23:41 +0000 |
commit | ff70a75291d6e2f24ce14a3c8598eeda59fa1756 (patch) | |
tree | 303be201c634b435767024756eafae059aafc182 /main/apk-tools/0005-audit-do-not-load-repositories.patch | |
parent | 7dcd416a202e186d937d4f9af53b5f6e44eb47a6 (diff) | |
download | aports-ff70a75291d6e2f24ce14a3c8598eeda59fa1756.tar.bz2 aports-ff70a75291d6e2f24ce14a3c8598eeda59fa1756.tar.xz |
main/apk-tools: upgrade to 2.0_rc2
Diffstat (limited to 'main/apk-tools/0005-audit-do-not-load-repositories.patch')
-rw-r--r-- | main/apk-tools/0005-audit-do-not-load-repositories.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/main/apk-tools/0005-audit-do-not-load-repositories.patch b/main/apk-tools/0005-audit-do-not-load-repositories.patch deleted file mode 100644 index 28e2766d2..000000000 --- a/main/apk-tools/0005-audit-do-not-load-repositories.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 20b3c7c8b3653940f357729e9f7159e2f32c1021 Mon Sep 17 00:00:00 2001 -From: Timo Teras <timo.teras@iki.fi> -Date: Thu, 6 Aug 2009 13:09:38 +0300 -Subject: [PATCH 5/7] audit: do not load repositories - -they are not needed, and cause errors if signing keys are not -present. ---- - src/audit.c | 7 +++++-- - 1 files changed, 5 insertions(+), 2 deletions(-) - -diff --git a/src/audit.c b/src/audit.c -index e47f182..67cefac 100644 ---- a/src/audit.c -+++ b/src/audit.c -@@ -19,6 +19,7 @@ - #include "apk_database.h" - - struct audit_ctx { -+ unsigned int open_flags; - int (*audit)(struct apk_database *db); - }; - -@@ -169,9 +170,11 @@ static int audit_main(void *ctx, int argc, char **argv) - if (actx->audit == NULL) - return -EINVAL; - -- r = apk_db_open(&db, apk_root, APK_OPENF_READ); -+ r = apk_db_open(&db, apk_root, -+ APK_OPENF_READ | APK_OPENF_NO_SCRIPTS | -+ APK_OPENF_NO_REPOS); - if (r != 0) { -- apk_error("APK database not present"); -+ apk_error("Unable to open db: %s", apk_error_str(r)); - return r; - } - r = actx->audit(&db); --- -1.6.4 - |