ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@altlinux.org>
Subject: Re: [sisyphus] Re: I: Sisyphus-20051024 packages: +1! +4 (4867)
Date: Mon, 24 Oct 2005 03:49:31 +0400
Message-ID: <20051023234931.GA17892@basalt.office.altlinux.org> (raw)
In-Reply-To: <20051023233042.GB3320@solemn.turbinal.org>

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

On Mon, Oct 24, 2005 at 03:30:42AM +0400, Alexey Tourbin wrote:
> On Mon, Oct 24, 2005 at 02:50:48AM +0400, Dmitry V. Levin wrote:
> > Потому что rpmEVRcmp() не коммутативно:
> > 
> > $ rpmevrcmp 1:1.06-alt1 1.06-ipl6mdk
> > -1
> > $ rpmevrcmp 1.06-ipl6mdk 1:1.06-alt1
> > -1
> 
> Не понял.  Коммутативность(+) ::= forall(a,b) a+b = b+a
> Сравнение версий и не может быть коммутативным в этом смысле.
> То есть речь идёт не о свойстве a<b=b<a, а о свойстве a<b=b>a.

Ну да, я имел в виду, что оно не антисимметрично. :)

> > Зато если у обоих аргументов serial определён, то rpmEVRcmp() уже
> > коммутативно:
> > 
> > $ rpmevrcmp 1:1.06-alt1 0:1.06-ipl6mdk
> > 1
> > $ rpmevrcmp 0:1.06-ipl6mdk 1:1.06-alt1
> > -1
> 
> Как сравнивается в первом случае?

Если у первого аргумента epoch не определён, а у второго определён, то
меньше.

Если у первого аргумента epoch определён, а у второго не определён, то
зависит от версии librpm; в rpm-4_0 равно, в rpm-4_4 больше или равно в
зависимости от настроек второго аргумента. :)

Я могу сделать поведение утилиты rpmevrcmp более логичным, чем поведение
rpmEVRcmp/rpmdsCompare.  Если надо.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2005-10-23 23:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-23 22:07 [sisyphus] " Alexey M. Tourbin
2005-10-23 22:10 ` Dmitry V. Levin
2005-10-23 22:41   ` [sisyphus] " Alexey Tourbin
2005-10-23 22:50     ` Dmitry V. Levin
2005-10-23 23:30       ` Alexey Tourbin
2005-10-23 23:42         ` [sisyphus] [JT] " Alexey Rusakov
2005-10-23 23:57           ` [sisyphus] " Alexey Tourbin
2005-10-23 23:49         ` Dmitry V. Levin [this message]

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=20051023234931.GA17892@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git