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

Fix: deb: Fix content file modes to support gdebi, etc. #904

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erikgeiser
Copy link
Member

This PR fixes the file/dir modes in the .deb data tar headers. When creating directory entries based on actual on-disk directories, their modes ended up including some flags that confused graphical package manager frontends (Software Install and gdebi). With this PR, the mode field in the tar header only contains the permissions, because other type information is already included in other header fields.

Fixes #856.

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 4, 2025
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 59.67742% with 25 lines in your changes missing coverage. Please review.

Project coverage is 69.66%. Comparing base (f9d9d19) to head (9619751).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
deb/deb.go 59.01% 20 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #904      +/-   ##
==========================================
- Coverage   70.03%   69.66%   -0.37%     
==========================================
  Files          22       22              
  Lines        3080     3119      +39     
==========================================
+ Hits         2157     2173      +16     
- Misses        718      736      +18     
- Partials      205      210       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@erikgeiser erikgeiser force-pushed the fix_deb_file_modes branch 2 times, most recently from 067a99a to 3328717 Compare February 4, 2025 20:37
@erikgeiser
Copy link
Member Author

I'll deal with the failing acceptance test tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

type: tree creates issues in deb packages
1 participant