xbps_transaction_install_pkg: return EEXIST if pkg already installed.
This commit is contained in:
1 parent
4cd73643a3
commit
cbf7417d1d
2 files changed
+3
-3
No files matched your search
@@ -252,7 +252,7 @@ xbps_transaction_install_pkg(const char *pkg, bool reinstall)
|
||||
prop_object_release(pkgd);
|
||||
if ((state == XBPS_PKG_STATE_INSTALLED) && !reinstall) {
|
||||
/* error out if pkg installed and no reinstall */
|
||||
return ENODEV;
|
||||
return EEXIST;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user