ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: смена симлинка в пакете на каталог
@ 2004-09-19 21:26 Alexey I. Froloff
  2004-09-20  5:30 ` Alexey Voinov
  2004-09-27 13:30 ` Sergey V Turchin
  0 siblings, 2 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2004-09-19 21:26 UTC (permalink / raw)
  To: ALT Devel discussion list

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

А как _правильно_ менять симлик на каталог?  Я сделал так:

%pre common
if [ -L "%_datadir/vim/doc" ]; then
  d=$(realpath "%_datadir/vim/doc")
  %__rm -f -- "%_datadir/vim/doc"
  %__mv -f -- "$d" "%_datadir/vim/doc"
fi

Какие тут могут быть подводные грабли?

P.S. У меня пакет обновился нормально.
P.P.S. Судя по документации триггера тут не помогут.

-- 
Regards,
Sir Raorn.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-27 13:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-19 21:26 [devel] Q: смена симлинка в пакете на каталог Alexey I. Froloff
2004-09-20  5:30 ` Alexey Voinov
2004-09-27 13:30 ` Sergey V Turchin
2004-09-27 13:33   ` Alexey I. Froloff
2004-09-27 13:42     ` Sergey V Turchin
2004-09-27 13:55       ` Alexey I. Froloff

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