From: Alexey Tourbin <at@altlinux.ru> To: devel@lists.altlinux.org Subject: Re: [devel] hasher и глюки apt'а Date: Thu, 5 Apr 2007 02:52:49 +0400 Message-ID: <20070404225249.GK566@solemn.turbinal> (raw) In-Reply-To: <20070404220041.GJ566@solemn.turbinal> [-- Attachment #1: Type: text/plain, Size: 1275 bytes --] On Thu, Apr 05, 2007 at 02:00:41AM +0400, Alexey Tourbin wrote: > On Thu, Apr 05, 2007 at 12:18:02AM +0400, Alexey Tourbin wrote: > > [at@hint1 ~]$ hsh-install $TMPDIR/build python=2.4 python=2.4 > > Reading Package Lists... > > Building Dependency Tree... > > Selected version python-strict#2.4.4-alt10 for python=2.4 > > Selected version python-relaxed#2.4.4-alt10 for python=2.4 > Там есть глюк в Fix_.ScoreSort; почему-то если пакет уже установлен > или выбран для установки, то его score понижается. > просто обойти стороной. Нет, похоже это моя ошибка. Fix_.ScoreSort как раз увеличивает score, если пакет уже установлен. Точнее, ScoreSort просто сортирует пакеты по возрастанию score, чего нельзя понять из названия функции. Посмотрите на этот код: int pkgProblemResolver::ScoreSort(const void *a,const void *b) { Package const **A = (Package const **)a; Package const **B = (Package const **)b; if (This->Scores[(*A)->ID] > This->Scores[(*B)->ID]) return -1; if (This->Scores[(*A)->ID] < This->Scores[(*B)->ID]) return 1; return 0; } По-моему если кто-то пишет 'if (a>b) return -1' а функция называется Sort а не ReverseSort то... [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-04-04 22:52 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-04-04 16:02 Alexey Tourbin 2007-04-04 16:22 ` Alexey Tourbin 2007-04-04 16:24 ` Dmitry V. Levin 2007-04-04 16:59 ` Alexey Tourbin 2007-04-04 17:02 ` Dmitry V. Levin 2007-04-04 18:21 ` Alexey Tourbin 2007-04-04 21:04 ` Alexey Tourbin 2007-04-05 12:04 ` Igor Zubkov 2007-04-05 12:24 ` Igor Zubkov 2007-04-04 18:40 ` Alexey Tourbin 2007-04-04 20:18 ` Alexey Tourbin 2007-04-04 22:00 ` Alexey Tourbin 2007-04-04 22:52 ` Alexey Tourbin [this message] 2007-04-09 12:45 ` 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=20070404225249.GK566@solemn.turbinal \ --to=at@altlinux.ru \ --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