Skip to content

Commit

Permalink
Merge pull request #1720 from rmartin16/verbose-log-file-perm-update
Browse files Browse the repository at this point in the history
Use verbose logging for Linux file perms updating
  • Loading branch information
freakboy3742 committed Apr 4, 2024
2 parents 9b28477 + 72f2379 commit 3a2b445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit 3a2b445

Please sign in to comment.