ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Удаление определённой сборки NEVR
Date: Tue, 4 Jun 2019 10:28:28 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1906041026080.1228@imap.altlinux.org> (raw)
In-Reply-To: <aa5d7bd3-fc44-e756-eb68-52badefd9229@basealt.ru>

[-- Attachment #1: Type: text/plain, Size: 3082 bytes --]


On Tue, 4 Jun 2019, Anton Farygin wrote:

> 03.06.2019 23:35, Alexey V. Vissarionov пишет:
> > On 2019-06-03 22:34:40 +0300, Vladimir D. Seleznev wrote:
> >
> > > rpm, начиная с версий 4.13.0.1-alt7 в Сизифе и 4.0.4-alt101.M80P.5.3
> > > в p8, научился понимать DistTag и BuildTime в формате запроса (query)
> > > пакета. Что даёт возможность удалить определённую сборку NEVR пакета,
> > > что может быть полезно при неуспешном dist-upgrade. DistTag
> > > указывается через двоеточие после релиза, BuildTime — после собачки
> > > ("@").
> > > Пример: в системе параллельно с тем, что из репозитория, был
> > > установлен локально собранный rpm:
> > > # rpm -q rpm
> > > rpm-4.13.0.1-alt7.x86_64
> > > rpm-4.13.0.1-alt7.x86_64
> >
> > Совершенно бесполезный вывод... Любой уважающий себя админ в подобном
> > случае пожелает (1) сразу увидеть отличия между этими пакетами, и (2)
> > иметь возможность скопипастить в командную строку rpm -e готовое имя
> > пакета (однозначно идентифицирующее оный).
> >
> > > При попытке удалить его rpm жалуется, что указанный запрос
> > > соответствует нескольким пакетам:
> > > # rpm -e rpm
> > > error: "rpm" specifies multiple packages:
> > > rpm-4.13.0.1-alt7@1559588819.x86_64
> > > rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
> > > И перечислены сами пакеты: тот, что из репозитория указан с
> > > DistTag'ом; локально собранный без DistTag'а, поэтому отображается
> > > с BuildTime'ом.
> >
> > А сразу в таком виде выводить - православным буддистам аллах запрещает?
> >
> > > При вводе полного запроса с DistTag'ом или BuildTime'ом, будет
> > > удалён определённый пакет:
> > > # rpm -e rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
> >
> > Ну вот и в выводе rpm -q надо их в таком виде рисовать...
> >
> >
> Да, согласен. Но этим самым мы можем кому-то что-то поломать.

Мне кажется, это маловероятно (или по крайней мере -- это должно быть уже 
хорошо известно), потому что не так давно этот хвост уже наращивался:

при переходе с rpm-4.0.4 на rpm-4.13 появился хвост .ARCH в этом выводе по 
умолчанию.

-- 
Best regards,
Ivan

  parent reply	other threads:[~2019-06-04  7:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-03 19:34 Vladimir D. Seleznev
2019-06-03 20:35 ` Alexey V. Vissarionov
2019-06-04  7:02   ` Anton Farygin
2019-06-04  7:23     ` Alexey V. Vissarionov
2019-06-04  7:28     ` Ivan Zakharyaschev [this message]
2019-06-04 10:23       ` Sergey Afonin
2019-06-04  7:38     ` Igor Zubkov
2019-06-04 11:40       ` Vladimir D. Seleznev
2019-06-04 12:03         ` Andrey Savchenko
2019-06-04 14:15         ` Alexey V. Vissarionov
2019-06-04 10:57 ` [devel] [sisyphus] " Alexey Tourbin

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=alpine.LFD.2.20.1906041026080.1228@imap.altlinux.org \
    --to=imz@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