Skip to content
New issue

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

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

Already on GitHub? # to your account

Use verbose logging for Linux file perms updating #1720

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/1720.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The listing of filenames for updating permissions for building native Linux packages is now only shown when verbose logging is enabled via ``-v``.
4 changes: 2 additions & 2 deletions src/briefcase/platforms/linux/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def build_app(self, app: AppConfig, **kwargs):
f"Template does not provide a manpage source file `{app.app_name}.1`"
)

self.logger.info("Update file permissions...")
self.logger.verbose("Update file permissions...")
with self.input.wait_bar("Updating file permissions..."):
for path in self.project_path(app).glob("**/*"):
old_perms = self.tools.os.stat(path).st_mode & 0o777
Expand All @@ -775,7 +775,7 @@ def build_app(self, app: AppConfig, **kwargs):

# If there's been any change in permissions, apply them
if new_perms != old_perms: # pragma: no-cover-if-is-windows
self.logger.info(
self.logger.verbose(
"Updating file permissions on "
f"{path.relative_to(self.bundle_path(app))} "
f"from {oct(old_perms)[2:]} to {oct(new_perms)[2:]}"
Expand Down
Loading