From f27b7557bc01d465e11ba1d0a4eaa54b721a9022 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 30 Jan 2011 08:22:58 +0100 Subject: [PATCH] xbps-bin: there's no need to add objs in inverted order for -R. --- bin/xbps-bin/remove.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/xbps-bin/remove.c b/bin/xbps-bin/remove.c index d2a4ff8a..4bf0d5c2 100644 --- a/bin/xbps-bin/remove.c +++ b/bin/xbps-bin/remove.c @@ -158,8 +158,7 @@ xbps_remove_installed_pkgs(int argc, return EINVAL; } /* in reverse order */ - x = prop_array_count(orphans); - while (x--) + for (x = 0; x < prop_array_count(orphans); x++) prop_array_add(sorted_pkgs, prop_array_get(orphans, x)); prop_object_release(orphans);