From 72f2379cec2ea4196efea0c80522aef7a2b57e35 Mon Sep 17 00:00:00 2001 From: Russell Martin Date: Thu, 4 Apr 2024 14:16:26 -0400 Subject: [PATCH] Use verbose logging for Linux file perms updating --- changes/1720.feature.rst | 1 + src/briefcase/platforms/linux/system.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changes/1720.feature.rst diff --git a/changes/1720.feature.rst b/changes/1720.feature.rst new file mode 100644 index 000000000..ec6059f99 --- /dev/null +++ b/changes/1720.feature.rst @@ -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``. diff --git a/src/briefcase/platforms/linux/system.py b/src/briefcase/platforms/linux/system.py index b05ca0da8..e6cd5ea75 100644 --- a/src/briefcase/platforms/linux/system.py +++ b/src/briefcase/platforms/linux/system.py @@ -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 @@ -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:]}"