diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-22 16:06:34 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-22 16:06:34 +0300 |
commit | 5375efac1af6488f8af5063fab243fe844334f05 (patch) | |
tree | 70d3a4c22f45f4960276de6261e967fe8b5d1045 /src/apk.c | |
parent | 23582a0ec5e52489c22c15a1a77f32de514cf5d9 (diff) | |
download | apk-tools-5375efac1af6488f8af5063fab243fe844334f05.tar.gz apk-tools-5375efac1af6488f8af5063fab243fe844334f05.tar.bz2 apk-tools-5375efac1af6488f8af5063fab243fe844334f05.tar.xz apk-tools-5375efac1af6488f8af5063fab243fe844334f05.zip |
apk: allow-untrusted option
to not make hard error of untrusted or missing signatures
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |