summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_remove.c')
-rw-r--r--libopkg/opkg_remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c
index f53ef00..a2ef09c 100644
--- a/libopkg/opkg_remove.c
+++ b/libopkg/opkg_remove.c
@@ -244,7 +244,7 @@ opkg_remove_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
"\tyou enjoy that kind of pain, you can force opkg to proceed against\n"
"\tits will with the option: --force-removal-of-essential-packages\n",
pkg->name);
- return OPKG_PKG_IS_ESSENTIAL;
+ return -1;
}
}
@@ -270,7 +270,7 @@ opkg_remove_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
if (!conf->force_removal_of_dependent_packages) {
print_dependents_warning(conf, parent_pkg, pkg, dependents);
free(dependents);
- return OPKG_PKG_HAS_DEPENDENTS;
+ return -1;
}
/* remove packages depending on this package - Karthik */