From: Aleksandr Shamaraev <shad@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] Выполнение секции %post
Date: Mon, 04 May 2026 12:29:13 +0300
Message-ID: <86d29d44950045f4b9c7c6d0294c14d1@altlinux.org> (raw)
Доброго дня всем.
Обратил внимание, что почему-то перестала работать секция
%post
if [ "$1" -eq 2 ]; then
python3 %_datadir/%name/ams_check.py
fi
То есть после обновления пакета перестал выполняться скрипт.
Сказать по правде для пакета alt-mirror-switcher (
https://packages.altlinux.org/ru/sisyphus/srpms/alt-mirror-switcher/specfiles/
) это критично, так как если используются какие нибудь дополнительные
зеркала, то они могут быть сброшены во время обновления и обновление,
как таковое, сломается из-за отсутствия источников.
Данный скрипт призван восстановить их во время обновления, чтоб дальше
шло все как шло.
Подскажите пожалуйста, что-то поменялось?
Или я что-то делаю не так?
С уважением, Александр (shad)
next reply other threads:[~2026-05-04 9:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 9:29 Aleksandr Shamaraev [this message]
2026-05-04 11:05 ` Vitaly Chikunov
2026-05-04 12:54 ` [devel] %post considered harmful Arseny Maslennikov
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=86d29d44950045f4b9c7c6d0294c14d1@altlinux.org \
--to=shad@altlinux.org \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git