xbps_remove_pkg: unregister and remove metadata in updates for now.

--HG--
extra : convert_revision : c5c8dc4c32199b1f0e4e26883cadea379a6e4239
This commit is contained in:
Juan RP 2009-08-09 23:33:13 +02:00
parent 304979f024
commit 9b7a658e44

View file

@ -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);
}