-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add ownership of the git configuration file #11180
Draft
ekohl
wants to merge
1
commit into
theforeman:rpm/develop
Choose a base branch
from
ekohl:rpm/develop-add-git-config-file
base: rpm/develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
Name: rubygem-%{gem_name} | ||
Version: 9.5.1 | ||
Release: 1%{?foremandist}%{?dist} | ||
Release: 2%{?foremandist}%{?dist} | ||
Summary: Template-syncing engine for Foreman | ||
License: GPLv3 | ||
URL: https://github.com/theforeman/foreman_templates | ||
|
@@ -67,6 +67,10 @@ cp -a .%{gem_dir}/* \ | |
%foreman_bundlerd_file | ||
%foreman_precompile_plugin -s | ||
|
||
# Ensure a git config file exists | ||
mkdir -p %{buildroot}%{foreman_dir}/.config/git | ||
touch %{buildroot}%{foreman_dir}/.config/git/config | ||
|
||
%files | ||
%dir %{gem_instdir} | ||
%license %{gem_instdir}/LICENSE | ||
|
@@ -84,6 +88,9 @@ cp -a .%{gem_dir}/* \ | |
%{foreman_assets_foreman} | ||
%{foreman_webpack_plugin} | ||
%{foreman_webpack_foreman} | ||
%attr(-, foreman, foreman) %dir %{foreman_dir}/.config | ||
%attr(-, foreman, foreman) %dir %{foreman_dir}/.config/git | ||
%attr(0600, foreman, foreman) %config(noreplace) %{foreman_dir}/.config/git/config | ||
|
||
%files doc | ||
%doc %{gem_docdir} | ||
|
@@ -94,6 +101,9 @@ cp -a .%{gem_dir}/* \ | |
%{foreman_plugin_log} | ||
|
||
%changelog | ||
* Wed Aug 28 2024 Ewoud Kohl van Wijngaarden <[email protected]> - 9.5.1-2 | ||
- Add ownership of the git configuration file | ||
|
||
* Sun Aug 11 2024 Foreman Packaging Automation <[email protected]> - 9.5.1-1 | ||
- Update to 9.5.1 | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this leave us with %{foreman_dir}/.config/ and %{foreman_dir}/.config/git/ being not owned by this package or any other package? I think so what makes me think we need then to add two %dir directives for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that when writing it, but wasn't quite sure. It reminds that #9705 should be finished up as well.