postgresql-charms-single-kernel 16.0.1__py3-none-any.whl → 16.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: postgresql-charms-single-kernel
3
- Version: 16.0.1
3
+ Version: 16.0.2
4
4
  Summary: Shared and reusable code for PostgreSQL-related charms
5
5
  Author-email: Canonical Data Platform <data-platform@lists.launchpad.net>
6
6
  License-Expression: Apache-2.0
@@ -4,8 +4,8 @@ single_kernel_postgresql/config/__init__.py,sha256=k9Ud5ZZNd3l0nn8xi8AIlT45oZk8h
4
4
  single_kernel_postgresql/config/literals.py,sha256=4EpAnoxCEMfOCPpFD5dyAU_0h2OwAHgEX9OjTWNcaQg,527
5
5
  single_kernel_postgresql/utils/__init__.py,sha256=VwAEW3wYjs99q38bid47aS6Os4s3catK4H5HfdPkp94,121
6
6
  single_kernel_postgresql/utils/filesystem.py,sha256=CJ2iXqFPKM0NfqqZSTDlENOrM0RW7rmTmcuzwV0bR9A,552
7
- single_kernel_postgresql/utils/postgresql.py,sha256=bM57IUWPX4x0u7yL68zYdlPcBs7SIDRKj28zzeMXXeI,75950
8
- postgresql_charms_single_kernel-16.0.1.dist-info/METADATA,sha256=CcN0WZUEcOdlf2ho3l_K60JTq8qMhzanZ5NW73EcMc4,484
9
- postgresql_charms_single_kernel-16.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- postgresql_charms_single_kernel-16.0.1.dist-info/top_level.txt,sha256=fH85HKyfDV3--1JuYe-rWJmN5XTlXVXGOBO5iNA36Rk,25
11
- postgresql_charms_single_kernel-16.0.1.dist-info/RECORD,,
7
+ single_kernel_postgresql/utils/postgresql.py,sha256=ZhTZZcshgHjZgP4aRCWyfmW9ArUISLdqo9NnJBg1fdM,75963
8
+ postgresql_charms_single_kernel-16.0.2.dist-info/METADATA,sha256=TCKebjoRLWERCEzeLgiRcX9dfZx-TLXf0CU55Ki7xik,484
9
+ postgresql_charms_single_kernel-16.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ postgresql_charms_single_kernel-16.0.2.dist-info/top_level.txt,sha256=fH85HKyfDV3--1JuYe-rWJmN5XTlXVXGOBO5iNA36Rk,25
11
+ postgresql_charms_single_kernel-16.0.2.dist-info/RECORD,,
@@ -1079,7 +1079,7 @@ class PostgreSQL:
1079
1079
  temp_location_stats = os.stat(temp_location)
1080
1080
  if (
1081
1081
  pwd.getpwuid(temp_location_stats.st_uid).pw_name != SNAP_USER
1082
- or temp_location_stats.st_mode != POSTGRESQL_STORAGE_PERMISSIONS
1082
+ or int(temp_location_stats.st_mode & 0o777) != POSTGRESQL_STORAGE_PERMISSIONS
1083
1083
  ):
1084
1084
  change_owner(temp_location)
1085
1085
  os.chmod(temp_location, POSTGRESQL_STORAGE_PERMISSIONS)