diff --git a/bin/xbps-bin/install.c b/bin/xbps-bin/install.c index a271422da94..65f5ccfb495 100644 --- a/bin/xbps-bin/install.c +++ b/bin/xbps-bin/install.c @@ -219,7 +219,7 @@ xbps_install_pkg(const char *pkg, bool force, bool update) if (strcmp(origin, pkgname)) pkg_is_dep = true; - if (update) { + if (update && strcmp(pkg, pkgname) == 0) { /* * Update a package, firstly removing current package. */