From 5375efac1af6488f8af5063fab243fe844334f05 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 22 Jul 2009 16:06:34 +0300 Subject: apk: allow-untrusted option to not make hard error of untrusted or missing signatures --- src/apk.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/apk.c') diff --git a/src/apk.c b/src/apk.c index e77d13f..5266158 100644 --- a/src/apk.c +++ b/src/apk.c @@ -43,6 +43,8 @@ static struct apk_option generic_options[] = { { 0x101, "progress", "Show a progress bar" }, { 0x102, "clean-protected", "Do not create .apk-new files to " "configuration dirs" }, + { 0x103, "allow-untrusted", "Blindly install packages with untrusted " + "signatures or no signature at all" }, { 0x104, "simulate", "Show what would be done without actually " "doing it" }, { 0x105, "wait", "Wait for TIME seconds to get an exclusive " @@ -351,6 +353,9 @@ int main(int argc, char **argv) case 0x102: apk_flags |= APK_CLEAN_PROTECTED; break; + case 0x103: + apk_flags |= APK_ALLOW_UNTRUSTED; + break; case 0x104: apk_flags |= APK_SIMULATE; break; -- cgit v1.2.3