xbps_find_orphan_packages: change some comments.
--HG-- extra : convert_revision : 7e807567b387d683ba487cb4ae7b897e840ab730
This commit is contained in:
parent
c462a3cf08
commit
74a7c643d6
1 changed files with 4 additions and 5 deletions
|
@ -123,8 +123,9 @@ xbps_find_orphan_packages(void)
|
||||||
if ((dict = xbps_prepare_regpkgdb_dict()) == NULL)
|
if ((dict = xbps_prepare_regpkgdb_dict()) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
/*
|
/*
|
||||||
* Find out all orphan packages by looking at the
|
* Find out all orphans by looking at the
|
||||||
* regpkgdb dictionary and we must do that in reverse order.
|
* regpkgdb dictionary and iterate in reverse order
|
||||||
|
* in which packages were installed.
|
||||||
*/
|
*/
|
||||||
rv = xbps_callback_array_iter_reverse_in_dict(dict, "packages",
|
rv = xbps_callback_array_iter_reverse_in_dict(dict, "packages",
|
||||||
find_orphan_pkg, NULL);
|
find_orphan_pkg, NULL);
|
||||||
|
@ -133,9 +134,7 @@ xbps_find_orphan_packages(void)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Prepare an array with all packages previously found. We
|
* Prepare an array with all packages previously found.
|
||||||
* do this in that way to do a reverse order in which the
|
|
||||||
* packages were installed.
|
|
||||||
*/
|
*/
|
||||||
array = prop_array_create();
|
array = prop_array_create();
|
||||||
if (array == NULL) {
|
if (array == NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue