Files
pgadmin4/use-os-makedirs.patch

23 lines
693 B
Diff
Raw Permalink Normal View History

From: Antonio Larrosa <alarrosa@suse.com>
Subject: Use os.makedirs instead of os.mkdir
So parent directories are created if needed
---
web/pgadmin/setup/data_directory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Accepting request 1101479 from home:StevenK:branches:server:database:postgresql - Update to 7.4, extremely large list of changes, partially chosen: * Make Statistics, Dependencies, Dependants tabs closable and the user can add them back using the 'Add panel' option. * Added support for Logical Replication. * Implemented runtime using NWjs to open pgAdmin4 in a standalone window instead of the system tray and web browser. * Added Quick Search functionality for menu items and help articles. * Added publication and subscription support in Schema Diff. * Use cheroot as the default production server for pgAdmin4. * Show the login roles that are members of a group role be shown when examining a group role. * Added '--replace' option in Import server to replace the list of servers with the newly imported one. * Added zoom scaling options with keyboard shortcuts in runtime. * Use schema qualification while accessing the catalog objects. * Make the 'Save Data Changes' icon to be more intuitive. * Improve code coverage and API test cases for Server module. * Added support to set auto width of columns by content size in the data output window. * Added support to connect PostgreSQL servers via Kerberos authentication. * Added "IF NOT EXISTS" clause while creating tables and partition tables which is convenient while using the ERD tool. * Added browse button to select the binary path in the Preferences. * Added Grant Wizard option under Package node. * Added support to launch PSQL for the connected database server. * Added window maximize/restore functionality for properties dialog. * Added support to set the binary path for the different database server versions. * Added OS, Browser, Configuration details in the About dialog. * Added support for rotating the pgAdmin log file on the basis of size OBS-URL: https://build.opensuse.org/request/show/1101479 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgadmin4?expand=0&rev=53
2023-08-04 09:49:01 +00:00
Index: pgadmin4-7.4/web/pgadmin/setup/data_directory.py
===================================================================
--- pgadmin4-7.4.orig/web/pgadmin/setup/data_directory.py
+++ pgadmin4-7.4/web/pgadmin/setup/data_directory.py
@@ -18,7 +18,7 @@ FAILED_CREATE_DIR = \
def _create_directory_if_not_exists(_path):
Accepting request 785612 from home:alarrosa:branches:server:database:postgresql - Update to 4.19 (boo#1166681) - New features * Added accessibility support in AlertifyJS. * Added Czech language support. * Added Python 3.8 support. - Housekeeping * Improve code coverage and API test cases for the Event Trigger module. * Improvements in the UI for both default and dark themes. * Enhance logging by tracking stdout and stderr of subprocess when log level set to DEBUG. * Added option to override the class name of a label tag for select2 control. - Bug fixes * Changed the color of selected and hovered item for Select2 dropdown. * Improve the style of the highlighted code after query execution for Dark mode. * Ensure that AlertifyJS should not be visible as a title for alert dialog. * Changed background pattern for geometry viewer to use #fff for all themes. * Fix an issue where debugger not showing all arguments anymore after hitting SQL error while debugging. * Set proper focus on tab navigation for file manager dialog. * Fix an issue where command and statements were parsed incorrectly for Rules. * Ensure that all the transactions should be canceled before closing the connections when a server is disconnected using pgAdmin. * Fixed Firefox monospaced issue by updating the font to the latest version. * Update Flask-SQLAlchemy and SQLAlchemy package which is not working OBS-URL: https://build.opensuse.org/request/show/785612 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgadmin4?expand=0&rev=23
2020-03-16 13:22:02 +00:00
if _path and not os.path.exists(_path):
- os.mkdir(_path)
+ os.makedirs(_path)
Accepting request 1101479 from home:StevenK:branches:server:database:postgresql - Update to 7.4, extremely large list of changes, partially chosen: * Make Statistics, Dependencies, Dependants tabs closable and the user can add them back using the 'Add panel' option. * Added support for Logical Replication. * Implemented runtime using NWjs to open pgAdmin4 in a standalone window instead of the system tray and web browser. * Added Quick Search functionality for menu items and help articles. * Added publication and subscription support in Schema Diff. * Use cheroot as the default production server for pgAdmin4. * Show the login roles that are members of a group role be shown when examining a group role. * Added '--replace' option in Import server to replace the list of servers with the newly imported one. * Added zoom scaling options with keyboard shortcuts in runtime. * Use schema qualification while accessing the catalog objects. * Make the 'Save Data Changes' icon to be more intuitive. * Improve code coverage and API test cases for Server module. * Added support to set auto width of columns by content size in the data output window. * Added support to connect PostgreSQL servers via Kerberos authentication. * Added "IF NOT EXISTS" clause while creating tables and partition tables which is convenient while using the ERD tool. * Added browse button to select the binary path in the Preferences. * Added Grant Wizard option under Package node. * Added support to launch PSQL for the connected database server. * Added window maximize/restore functionality for properties dialog. * Added support to set the binary path for the different database server versions. * Added OS, Browser, Configuration details in the About dialog. * Added support for rotating the pgAdmin log file on the basis of size OBS-URL: https://build.opensuse.org/request/show/1101479 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgadmin4?expand=0&rev=53
2023-08-04 09:49:01 +00:00
return True
Accepting request 1101479 from home:StevenK:branches:server:database:postgresql - Update to 7.4, extremely large list of changes, partially chosen: * Make Statistics, Dependencies, Dependants tabs closable and the user can add them back using the 'Add panel' option. * Added support for Logical Replication. * Implemented runtime using NWjs to open pgAdmin4 in a standalone window instead of the system tray and web browser. * Added Quick Search functionality for menu items and help articles. * Added publication and subscription support in Schema Diff. * Use cheroot as the default production server for pgAdmin4. * Show the login roles that are members of a group role be shown when examining a group role. * Added '--replace' option in Import server to replace the list of servers with the newly imported one. * Added zoom scaling options with keyboard shortcuts in runtime. * Use schema qualification while accessing the catalog objects. * Make the 'Save Data Changes' icon to be more intuitive. * Improve code coverage and API test cases for Server module. * Added support to set auto width of columns by content size in the data output window. * Added support to connect PostgreSQL servers via Kerberos authentication. * Added "IF NOT EXISTS" clause while creating tables and partition tables which is convenient while using the ERD tool. * Added browse button to select the binary path in the Preferences. * Added Grant Wizard option under Package node. * Added support to launch PSQL for the connected database server. * Added window maximize/restore functionality for properties dialog. * Added support to set the binary path for the different database server versions. * Added OS, Browser, Configuration details in the About dialog. * Added support for rotating the pgAdmin log file on the basis of size OBS-URL: https://build.opensuse.org/request/show/1101479 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgadmin4?expand=0&rev=53
2023-08-04 09:49:01 +00:00
return False