From: Vitaly Chikunov <vt@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Выполнение секции %post
Date: Mon, 4 May 2026 14:05:23 +0300
Message-ID: <afh6hmTJF8utJoGy@altlinux.org> (raw)
In-Reply-To: <86d29d44950045f4b9c7c6d0294c14d1@altlinux.org>
Aleksandr,
On Mon, May 04, 2026 at 12:29:13PM +0300, Aleksandr Shamaraev wrote:
> Доброго дня всем.
>
> Обратил внимание, что почему-то перестала работать секция
>
> %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/
> ) это критично, так как если используются какие нибудь дополнительные
> зеркала, то они могут быть сброшены во время обновления и обновление, как
> таковое, сломается из-за отсутствия источников.
>
> Данный скрипт призван восстановить их во время обновления, чтоб дальше шло
> все как шло.
>
> Подскажите пожалуйста, что-то поменялось?
Не менялось, да и не стали бы такое менять.
ps. Qt приложение из %post запускать конечно странно.
> Или я что-то делаю не так?
>
> С уважением, Александр (shad)
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-05-04 11:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 9:29 Aleksandr Shamaraev
2026-05-04 11:05 ` Vitaly Chikunov [this message]
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=afh6hmTJF8utJoGy@altlinux.org \
--to=vt@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