forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline + consolidate the hardlink handling logic
This is one tricksy piece of code, in particular wrt interactions with skipped files. Streamline the logic to make it easier to follow, and consolidate as much as possible inside fsmMkfile() so there's only one place opening, closing and writing to files. Add bunch of tests for partially skipped sets. This actually also fixes a case where metadata does not get properly set on a partially skipped hardlink file set (the --excludepath=/foo/zzzz case would fail prior to this)
- Loading branch information
Showing
2 changed files
with
107 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters