From: Ivan Zakharyaschev <imz@altlinux.ru> To: devel@altlinux.ru Subject: Re: [devel] Re: rpm packaging (was: Symbolic link and replace the dir) Date: Fri, 7 Feb 2003 20:47:12 +0300 (MSK) Message-ID: <Pine.LNX.4.51L.0302072037150.2489@arrakis.zephyrous> (raw) In-Reply-To: <20030207202738.3f56cc70.vyt@vzljot.ru> Hello! On Fri, 7 Feb 2003, Vitaly Ostanin wrote: > > Там в конце расписан порядок выполнения обновления. > \verbatim > new-%pre for new version of package being installed > ... (all new files are installed) > new-%post for new version of package being installed > > any-%triggerin (%triggerin from other packages set off by > new > install) > new-%triggerin > old-%triggerun > any-%triggerun (%triggerun from other packages set off by > old > uninstall) > > В моём случае старые файлы удаляются в > %pre > %__rm -rf -- %websitedir > > old-%preun for old version of package being removed > ... (all old files are removed) > ---------------------^^^^^^^^^ > > Ставятся новые файлы, и в этом месте (видимо) почему-то > удаляются > те их новых, которые были в старой сборке. > > Я так и не понял, почему часть файлов удаляется, а для других > пишется skip. И гадать уже особо некогда. Это секретная > информация, или никто не сталкивался? Предположение: symlink сбивает rpm столку. В старом пакете было: /dir1/a В новом пакете: /dir1 -> /dir2 /dir2/a Тогда происходит так: %pre удаляет всю /dir1/. Ставится новый пакет, в том числе файлы: /dir1 как симлинк на /dir2 и /dir2/a. Удаляется старый, в том числе все те файлы, которые принадлежали старому, но не принадлежали новому. В старом был файл /dir1/a, а в новом файла с таким путём нет. Он удаляется -- на самом деле удаляется /dir2/a. Если это так, то, наверное, решение возможно только внутри rpm. -- С наилучшими пожеланиями, Иван Захарьящев, Москва
next prev parent reply other threads:[~2003-02-07 17:47 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-03 18:21 [devel] Symbolic link and replace the dir Vitaly Ostanin 2003-02-04 7:45 ` Alexander Bokovoy 2003-02-05 16:42 ` [devel] " Vitaly Ostanin 2003-02-05 16:59 ` Sergey Vlasov 2003-02-05 18:01 ` [devel] Re: rpm packaging (was: Symbolic link and replace the dir) Vitaly Ostanin 2003-02-06 12:46 ` Sergey Vlasov 2003-02-07 17:27 ` Vitaly Ostanin 2003-02-07 17:35 ` Vitaly Ostanin 2003-02-07 17:47 ` Ivan Zakharyaschev [this message] 2003-02-07 17:56 ` Vitaly Ostanin 2003-02-07 18:14 ` Sergey Vlasov 2003-02-07 18:17 ` Sergey Vlasov 2003-02-07 18:19 ` Ivan Zakharyaschev 2003-02-07 18:22 ` Sergey Vlasov 2003-02-07 19:34 ` Vitaly Ostanin
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=Pine.LNX.4.51L.0302072037150.2489@arrakis.zephyrous \ --to=imz@altlinux.ru \ --cc=devel@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 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