From: "Александр Новосёлов" <n_list@mail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Переименование файлов после apt
Date: Sat, 17 Apr 2004 19:33:54 +0400
Message-ID: <E1BErpH-000Idy-00.n_list-mail-ru@mx2.mail.ru> (raw)
In-Reply-To: <000f01c4248c$6bdbba00$7e4396d5@1>
On Sat, 17 Apr 2004 18:52:45 +0400
"Дворников Михаил" <m_dvor@mail.ru> wrote:
> Apt скачивает rpm-файлы в /var/cache/apt/archives/.
> Но названия их отличаются:
> оригинал -> perl-Net-Daemon-0.37-alt2.noarch.rpm
> apt -> perl-Net-Daemon_0.37-alt2_noarch.rpm
> После копирования файлов в свой репозитарий и genbasedir,
> apt не замечает разницы в именах.
Переименовывает из аптовских подчеркиваний в нормальный вид.
#!/bin/sh
for i in *.rpm
do
canonbase="`rpm -qp $i`";
if echo "$i" | grep -v -q "^$canonbase"
then
arch="`rpm -q --queryformat '%{arch}' -p $i`"
canonname="${canonbase}.${arch}.rpm"
mv $i $canonname
fi
done
next prev parent reply other threads:[~2004-04-17 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-17 14:52 Дворников Михаил
2004-04-17 15:33 ` Александр Новосёлов [this message]
2004-04-22 7:35 ` Alexey Morozov
2004-04-17 15:34 ` dm
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=E1BErpH-000Idy-00.n_list-mail-ru@mx2.mail.ru \
--to=n_list@mail.ru \
--cc=community@altlinux.ru \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git