Re: Replacing regular file with directory on RPM upgrade ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/10/25 11:30 AM, Daniel P. Berrangé wrote:
On Mon, Mar 10, 2025 at 10:26:12AM +0100, Miroslav Suchý wrote:
Dne 10. 03. 25 v 10:22 dop. Daniel P. Berrangé napsal(a):
Did something change in cpio, or has it always been broken for regular file
to directory replacement too, and our docs were thus always incomplete ?

It was always this way.

The same for replacing a file with symlink. Or vice versa.

Ok, so the packaging docs should say that /any/ change in file type between
dir, regular & symlink needs special handling with lua scriptlets. I'll see
about submitting a docs patch.

Basically, if there's a directory involved, it can't be replaced on way or the other. A symlink to a directory is treated as a directory, so that counts. Otherwise file types can change.

Looking at this thread, rpm isn't detecting all the cases as conflicts as it should.

	- Panu -

--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux