xbps_remove_pkg: don't unregister pkg while updating.
--HG-- extra : convert_revision : 94b1a99f3799838f676a496028032347b40210d3
This commit is contained in:
parent
1f901fb737
commit
90b9325fbd
12
lib/remove.c
12
lib/remove.c
|
@ -367,11 +367,13 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
|
|||
if (rv != 0)
|
||||
return rv;
|
||||
|
||||
/*
|
||||
* Unregister pkg from database.
|
||||
*/
|
||||
if ((rv = xbps_unregister_pkg(pkgname)) != 0)
|
||||
return rv;
|
||||
if (update == false) {
|
||||
/*
|
||||
* Unregister pkg from database.
|
||||
*/
|
||||
if ((rv = xbps_unregister_pkg(pkgname)) != 0)
|
||||
return rv;
|
||||
}
|
||||
|
||||
/*
|
||||
* Remove pkg metadata directory.
|
||||
|
|
Loading…
Reference in New Issue