Tarantool development patches archive
 help / color / mirror / Atom feed
From: "Alexander V. Tikhonov" <avtikhon@tarantool.org>
To: Kirill Yukhin <kyukhin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH v1 3/3] update_repo: correct remove routine
Date: Sun, 25 Oct 2020 11:37:44 +0300	[thread overview]
Message-ID: <9c78cb64987fcf6a5687315061f4ad4748697beb.1603614713.git.avtikhon@tarantool.org> (raw)
In-Reply-To: <cover.1603614713.git.avtikhon@tarantool.org>

Implemented ability to remove opensuse-leap OS packages.
---
 tools/update_repo.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/tools/update_repo.sh b/tools/update_repo.sh
index 0d39f108d..581539719 100755
--- a/tools/update_repo.sh
+++ b/tools/update_repo.sh
@@ -881,7 +881,16 @@ function remove_rpm {
     # broken update left orphan files: they are present in the
     # storage, but does not mentioned in the metadata.
     for suffix in 'x86_64' 'noarch' 'src'; do
-        file="$bucket_path/$packpath/${remove}-1.${os}${option_dist}.${suffix}.rpm"
+        if [ "$os" == "opensuse-leap" ]; then 
+            # Open Build Service (openSUSE) does not follow the usual
+            # approach: 'Release' is like lp152.1.1, where the first
+            # '1' is $(RELEASE) RPM spec directive value and the second
+            # '1' is the number of rebuilds.
+            os_dist="lp"`echo $option_dist | sed 's#\.##g'`".1.1"
+        else
+            os_dist="1.${os}${option_dist}"
+        fi
+        file="$bucket_path/$packpath/${remove}-${os_dist}.${suffix}.rpm"
         echo "Searching to remove: $file"
         $aws ls $file || continue
         $aws rm $file
-- 
2.25.1

  parent reply	other threads:[~2020-10-25  8:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-25  8:37 [Tarantool-patches] [PATCH v1 0/3] update_repo: improvements for removements Alexander V. Tikhonov
2020-10-25  8:37 ` [Tarantool-patches] [PATCH v1 1/3] update_repo: add message which file to remove Alexander V. Tikhonov
2020-10-25  8:37 ` [Tarantool-patches] [PATCH v1 2/3] update_repo: correct help message on remove Alexander V. Tikhonov
2020-10-25  8:37 ` Alexander V. Tikhonov [this message]
2020-11-26  9:35 ` [Tarantool-patches] [PATCH v1 0/3] update_repo: improvements for removements Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9c78cb64987fcf6a5687315061f4ad4748697beb.1603614713.git.avtikhon@tarantool.org \
    --to=avtikhon@tarantool.org \
    --cc=kyukhin@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v1 3/3] update_repo: correct remove routine' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox