xbps-bin: there's no need to add objs in inverted order for -R.

This commit is contained in:
Juan RP 2011-01-30 08:22:58 +01:00
parent cb4e2199f3
commit f27b7557bc

View File

@ -158,8 +158,7 @@ xbps_remove_installed_pkgs(int argc,
return EINVAL; return EINVAL;
} }
/* in reverse order */ /* in reverse order */
x = prop_array_count(orphans); for (x = 0; x < prop_array_count(orphans); x++)
while (x--)
prop_array_add(sorted_pkgs, prop_array_get(orphans, x)); prop_array_add(sorted_pkgs, prop_array_get(orphans, x));
prop_object_release(orphans); prop_object_release(orphans);