From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 751AF445320 for ; Mon, 27 Jul 2020 16:11:09 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Mon, 27 Jul 2020 16:11:06 +0300 Message-Id: <9d538c87b2a0106b325c1ec104206a9f38f207df.1595855406.git.avtikhon@tarantool.org> Subject: [Tarantool-patches] [PATCH v1] update_repo: correct fix for RPMs on missing metadata List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kirill Yukhin , Alexander Turenko Cc: tarantool-patches@dev.tarantool.org Found that removing RPMs additional call to its removement is needed, when no metadata was found. --- Github: https://github.com/tarantool/tarantool/tree/avtikhon/correct_rpm_remove tools/update_repo.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/update_repo.sh b/tools/update_repo.sh index 5a68e3e05..d9b91a753 100755 --- a/tools/update_repo.sh +++ b/tools/update_repo.sh @@ -869,6 +869,13 @@ function remove_rpm { done done + # remove all found file by the given pattern in options + for suffix in 'x86_64' 'noarch' 'src'; do + file="$bucket_path/$packpath/${remove}-1.${os}${option_dist}.${suffix}.rpm" + $aws ls $file || continue + $aws rm $file + done + # check if any RPM files were newly registered [ "$updated_rpms" == "0" ] && \ return || echo "Updating dists" -- 2.17.1