diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-07 10:03:30 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-07 10:03:30 +0300 |
commit | 1531192cb9b697a8fc0042b295109bdf5cb52231 (patch) | |
tree | a806d103b475bd440f06f1712577821f7073f77e /src/add.c | |
parent | 812a6a3167be1082e190e7da04c71fece6821e66 (diff) | |
download | apk-tools-1531192cb9b697a8fc0042b295109bdf5cb52231.tar.bz2 apk-tools-1531192cb9b697a8fc0042b295109bdf5cb52231.tar.xz |
add: ignore install failures on 'apk add --force'
and use this option in initramfs, so we are likely to get an usable
environment even if some packages from world are missing. fixes #50.
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -145,7 +145,8 @@ static int add_main(void *ctx, int argc, char **argv) r = apk_state_lock_dependency(state, &pkgs->item[i]); if (r != 0) { apk_error("Unable to install '%s'", pkgs->item[i].name->name); - goto err; + if (!(apk_flags & APK_FORCE)) + goto err; } if (!virtpkg) apk_deps_add(&db.world, &pkgs->item[i]); |