From: REAL <root@mmedia2.kemsu.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Ошибка обновления пакета: симлинк вместо директории
Date: Tue, 22 Dec 2009 13:03:25 +0700
Message-ID: <4B30612D.3080003@mmedia2.kemsu.ru> (raw)
In-Reply-To: <200912220504.47485.prividen@altlinux.org>
Michael A. Kangin пишет:
> Новый пакет не устанавливается:
> error: unpacking of archive failed on file /usr/share/mediawiki/config: cpio:
> rename failed - Is a directory
>
> Что с этим делать - непонятно. Obsoletes на mediawiki < %version-%release не
> помогает.
> От имени симлинка отказываться очень бы не хотелось - кучу кода захакать
> придётся.
В спеке можно сделать что-то типа такого:
%pre -n %name-common
if [ -d %_datadir/mediawiki/config ]; then
rm -fR %_datadir/mediawiki/config
fi
if [ -d %_datadir/mediawiki/images ]; then
rm -fR %_datadir/mediawiki/images
fi
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
next prev parent reply other threads:[~2009-12-22 6:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 2:04 Michael A. Kangin
2009-12-22 6:03 ` REAL [this message]
2009-12-22 7:51 ` Michael A. Kangin
2009-12-22 9:58 ` Sergey Vlasov
2009-12-23 7:24 ` Michael A. Kangin
2009-12-23 10:49 ` Slava Semushin
2011-11-13 21:26 ` Sergey Y. Afonin
2011-11-13 21:32 ` Michael Shigorin
2011-11-13 21:46 ` Dmitry V. Levin
2011-11-13 23:47 ` Sergey Y. Afonin
2011-11-13 21:57 ` Sergey Y. Afonin
2011-11-13 22:06 ` Dmitry V. Levin
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=4B30612D.3080003@mmedia2.kemsu.ru \
--to=root@mmedia2.kemsu.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