When pkg add fails and we try to clean up what we may have installed already, be silent about failures doing so (since things may not have been installed actually).
modified libpkg/pkg_add.c
@@ -316,8 +316,8 @@ pkg_add(struct pkgdb *db, const char *path, unsigned flags, struct pkg_manifest_
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_delete.c
@@ -107,7 +107,8 @@ pkg_delete(struct pkg *pkg, struct pkgdb *db, unsigned flags)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -129,7 +130,11 @@ pkg_delete(struct pkg *pkg, struct pkgdb *db, unsigned flags)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -156,7 +161,8 @@ pkg_delete_files(struct pkg *pkg, bool force)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -362,7 +362,7 @@ int packing_append_tree(struct packing *pack, const char *treepath,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|