ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Дубликаты пакетов в репозитории
Date: Wed, 6 Jul 2016 11:51:57 +0300
Message-ID: <20160706085157.GA26244@altlinux.org> (raw)
In-Reply-To: <20160705231758.GA20614@altlinux.org>

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

On Wed, Jul 06, 2016 at 02:17:58AM +0300, Dmitry V. Levin wrote:
> On Wed, Jul 06, 2016 at 12:13:45AM +0300, Alexey Tourbin wrote:
> > 2016-07-05 22:54 GMT+03:00 Igor Zubkov <igor.zubkov@gmail.com>:
> > > Hi,
> > >
> > > Разбираясь с проблемами packages.altlinux.org я выяснил интересные вещи.
> > >
> > > branch = Branch.find_by!(name: '4.0')
> > > branch.srpms.count # => 6877
> > > branch.srpms.select('DISTINCT srpms.name').count # => 6868
> > >
> > > Тут девять лишних пакетов. srpms.name это Name: из пакета (%{NAME}).
> > 
> > Действительно.
> > 
> > $ rsync -n rsync.altlinux.org::ALTLinux/4.0/branch/files/SRPMS/ |awk
> > 'sub(/-[^-]+-[^-]+$/,"",$NF){print$NF}' |sort |uniq -D
> 
> И src.list это подтверждают (для 4.0 и 4.1):
> 
> $ for d in *; do f="$d/latest/files/list/src.list" && test -s "$f" && echo -n "$d: " && cut -f1 "$f" |uniq -d |wc -l; done
> 4.0: 9
> 4.1: 10
> 5.0: 0
> 5.1: 0
> c6: 0
> p5: 0
> p6: 0
> p7: 0
> sisyphus: 0
> t6: 0
> 
> При этом сборка пакетов в 4.0 и 4.1 была выключена более 3 лет назад...

$ for a in noarch i586 x86_64; do sed -rn "s/^([^[:space:]]+)[[:space:]][^[:space:]]+[[:space:]]$a[[:space:]].*/\\1/p" 4.0/files/list/bin.list; done |wc -l
20893
$ for a in noarch i586 x86_64; do sed -rn "s/^([^[:space:]]+)[[:space:]][^[:space:]]+[[:space:]]$a[[:space:]].*/\\1/p" 4.0/files/list/bin.list |uniq -d; done |wc -l
0

$ for a in noarch i586 x86_64; do sed -rn "s/^([^[:space:]]+)[[:space:]][^[:space:]]+[[:space:]]$a[[:space:]].*/\\1/p" 4.1/files/list/bin.list |uniq -d; done |wc -l
0
[ldv@wom ALT]$ for a in noarch i586 x86_64; do sed -rn "s/^([^[:space:]]+)[[:space:]][^[:space:]]+[[:space:]]$a[[:space:]].*/\\1/p" 4.1/files/list/bin.list; done |wc -l
24668

Т.е. в обоих случаях это было расхождение версий пакетов между
архитектурами.  Самый свежий из них в 4.1:

$ cut -f1 ../list/src.list |uniq -d |join -o2.3 - ../list/src.list |xargs -r ls -got |head -1
-rw-r--r-- 10 8729583 апр  8  2008 lazarus-0.9.24-alt3.src.rpm


-- 
ldv

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

      parent reply	other threads:[~2016-07-06  8:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05 19:54 Igor Zubkov
2016-07-05 19:59 ` Dmitry V. Levin
2016-07-05 21:13 ` Alexey Tourbin
2016-07-05 23:17   ` Dmitry V. Levin
2016-07-06  8:26     ` Igor Zubkov
2016-07-06  8:51     ` 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=20160706085157.GA26244@altlinux.org \
    --to=ldv@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