From bda9720be0ee44f55b2229518d08da06dfae4a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 10 May 2022 20:33:18 +0200 Subject: [PATCH] common/scripts/lint-conflicts: handle emptied packages --- common/scripts/lint-conflicts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/scripts/lint-conflicts b/common/scripts/lint-conflicts index bb0e2b2fd6b..2917f72a89a 100755 --- a/common/scripts/lint-conflicts +++ b/common/scripts/lint-conflicts @@ -130,9 +130,12 @@ group_by_file_partial() { # for all packages in xlocate local pkgname file ## newly built packages + while read -r pkgver; do + pkgname=${pkgver%-*} + newly_built[$pkgname]=$pkgname + done < <(xbps-query "${repositories[@]}" -i -R -s '' | cut -d' ' -f 2) while read -r pkgname file; do owners[$file]+=" $pkgname" - newly_built[$pkgname]=$pkgname done < <(list_newly_built_files) ## rest of repository while read -r pkgver file; do