From ae36bb5fa6bc346bf7c39b73648ac689bf2cfdb4 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 23 Feb 2021 13:35:43 +0000 Subject: pkg_get_base(): use for loop instead of while loop FossilOrigin-Name: 3b5c37511a3cc0e5164844a08e64af2b8e39f578e8d31e23f3d5c183ecefa40d --- src/cpt-lib.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 692b9b5..a978ebd 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1868,12 +1868,10 @@ pkg_get_base() ( while read -r pkgname _; do [ "${pkgname##\#*}" ] || continue set -- "$@" "$pkgname" - while read -r dep; do - contains "$*" "$dep" && continue - set -- "$@" "$dep" - done <