From: Led <ledest@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] genbasedir & unique package list
Date: Fri, 4 Dec 2009 20:14:50 +0200
Message-ID: <200912042014.50299.ledest@gmail.com> (raw)
In-Reply-To: <f725ea640912041007g4e048e3fg4869d65885ed289a@mail.gmail.com>
On Friday, 04 December 2009 20:07:48 Rinat Bikov wrote:
> 4 декабря 2009 г. 21:56 пользователь Led написал:
> > Очень разумно: сортируем и *-alt10 удаляем, *-alt2 оставляем:)
>
> Ну для начала нужно добиться такой сортировки, чтобы alt10 было после
> alt2. (у меня файлы были отсортированы в нужном порядке + удаление
> происходило с выводом %{VERSION}-%{RELEASE} обоих пакетов и
> использовалось rm -i, благо объём удаляемых пакетов был невелик).
> Если же невозможно добиться необходимой сортировки, и нужно
> автоматизировать удаление, то можно сравнивать опять же у 2-х соседних
> пакетов версии и релизы (тут больше проблем со сравнением версий).
Т.о. нужно сортировать по %{NAME} пакета - это первый (самый простой) алгоритм
сортировки, далее - %{VERSION} - это второй алгоритм сортировки,
далее - %{RELEASE} - это третий алгоритм. Так что "проще сделать" сделать -
не получится:)
А кроме версии и релиза есть ещё Epoh/Serial, которые в имени файла вообще не
отображаются.
--
Led
next prev parent reply other threads:[~2009-12-04 18:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-04 5:28 REAL
2009-12-04 5:32 ` Alexey Tourbin
2009-12-04 5:55 ` REAL
2009-12-04 5:54 ` Alexey Tourbin
2009-12-04 6:16 ` REAL
2009-12-04 6:06 ` Alexey Tourbin
2009-12-04 6:30 ` REAL
2009-12-04 17:51 ` Rinat Bikov
2009-12-04 17:56 ` Led
2009-12-04 18:07 ` Rinat Bikov
2009-12-04 18:13 ` Dmitry V. Levin
2009-12-05 0:44 ` Rinat Bikov
2009-12-05 6:54 ` Alexey Tourbin
2009-12-07 5:24 ` REAL
2009-12-07 6:37 ` Alexey Tourbin
2009-12-07 7:34 ` REAL
2009-12-08 11:55 ` [devel] [JT] HOBbI (was: genbasedir & unique package list) Michael Shigorin
2009-12-07 6:50 ` [devel] genbasedir & unique package list REAL
2009-12-07 6:39 ` Alexey Tourbin
2009-12-04 18:14 ` Led [this message]
2009-12-04 21:17 ` Kharitonov A. Dmitry
2009-12-04 16:24 ` Led
2009-12-07 4:32 ` REAL
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=200912042014.50299.ledest@gmail.com \
--to=ledest@gmail.com \
--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