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.
Avoid macro re-expansion of already pre-processed file paths so that the literal percent sign can be escaped in them, just like it can in other parts of the spec file. The re-expansion happens in rpmGenPath() through rpmGetPath() called within, so instead of calling the former, just concatenate the path components and canonicalize the result, which essentially has the same effect, with the exception that URLs are not handled, but we can probably live without that as we're dealing with local files here. We need to do this in all the places (i.e. two) where package file names are used in path construction. This shouldn't do any harm since the base paths in both cases already have been expanded at that point, anyway. Note that we're not changing processMetadataFile() here since that one doesn't support globs in the first place. We may want to turn this ugly nested call into a neat function named something like rpmCatPath() later, but let's keep it simple for now.
- Loading branch information
Showing
3 changed files
with
18 additions
and
5 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
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