xbps_remove_pkg: unregister and remove metadata in updates for now.
--HG-- extra : convert_revision : c5c8dc4c32199b1f0e4e26883cadea379a6e4239
This commit is contained in:
parent
304979f024
commit
9b7a658e44
23
lib/remove.c
23
lib/remove.c
|
@ -367,19 +367,14 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
|
|||
if (rv != 0)
|
||||
return rv;
|
||||
|
||||
if (update == false) {
|
||||
/*
|
||||
* Unregister pkg from database.
|
||||
*/
|
||||
rv = xbps_unregister_pkg(pkgname);
|
||||
if (rv != 0)
|
||||
return rv;
|
||||
/*
|
||||
* Unregister pkg from database.
|
||||
*/
|
||||
if ((rv = xbps_unregister_pkg(pkgname)) != 0)
|
||||
return rv;
|
||||
|
||||
/*
|
||||
* Remove pkg metadata directory.
|
||||
*/
|
||||
return remove_pkg_metadir(pkgname);
|
||||
}
|
||||
|
||||
return 0;
|
||||
/*
|
||||
* Remove pkg metadata directory.
|
||||
*/
|
||||
return remove_pkg_metadir(pkgname);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue