Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle file conflicts smarter when a file moves between packages #14

Open
joebonrichie opened this issue Jul 23, 2022 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@joebonrichie
Copy link
Contributor

The issue:
pkg B v2 is attempting to install /usr/bin/foo but /usr/bin/foo already exists on
the system from pkg A v1

  • pkg A v2 also is scheduled to install and no longer contains /usr/bin/foo but pkg B
    v2 is scheduled ahead of it.

Currently the upgrade operations completely ignores file conflicts and the install operation has a ugly workaround for this edge case. This edge case can be surprisingly common for example functionality getting split off into it's own library.

PiSi has no knowledge of the file lists for remote pkgs and adding support for that is outside of this scope. However, we can

If we encounter a file conflicts when attempting to install a package

  • Check if the existing conflicting package also exists in the install order
  • If it doesn't also exist in the install order, abort
  • If it does, extract and read the files.xml file to see if the conflicting file(s) still exists in the latest version of the package (the package should already be downloaded at this point)
  • If it doesn't allow installation to continue but warn user of a file(s) moving from pkg A to pkg B
  • If it does abort
@joebonrichie joebonrichie added bug Something isn't working enhancement New feature or request labels Jul 23, 2022
@ermo ermo added this to the eopkg python3 port milestone Feb 27, 2024
@TraceyC77 TraceyC77 removed the bug Something isn't working label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

3 participants