[Rpm-maint] [rpm-software-management/rpm] File conflicts: Symlinked directories -> same file replaced by real directories -> unique files (#1458)
Florian Festi
notifications at github.com
Tue Jan 18 09:56:33 UTC 2022
Ok, I really thought we already had an upstream ticket for this...
Anyway here my thought on what needs to be done to make this actually work:
Symlink to directory
--------------------
* New files
* Collision check needs to take new location into account
* To be removed files symlink->/dir/file
* Rewrite location to physical one
* Change action to remove even on collision with new files
* Remaining files no longer accessible
* Move to new dir?
* Error out?
* Change to physical location in RPMDB?
Directory to symlink to existing/new dir
------------------------------------
May need to ensure the target dir gets created early
* New files
* Collision check needs to take new location into account
* To be removed files
* Rename dir
* Rewrite location to new physical one
* Change action to remove even on collision with new files
* Remaining, now homeless files
* Move to new dir if it exist (this is kinda iffy)
Issues
------
* Moving files around
* Requires redoing the free disk space check
* May create issues with aliasing - especially if file is used from location unknown to rpm.
Probably more...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1458#issuecomment-1015246620
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1458/1015246620 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220118/b51345a8/attachment.html>
More information about the Rpm-maint
mailing list