Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package seafile for openSUSE:Factory checked in at 2021-09-14 21:14:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/seafile (Old) and /work/SRC/openSUSE:Factory/.seafile.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "seafile" Tue Sep 14 21:14:27 2021 rev:9 rq:918822 version:8.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/seafile/seafile.changes 2021-06-29 22:42:51.710842130 +0200 +++ /work/SRC/openSUSE:Factory/.seafile.new.1899/seafile.changes 2021-09-14 21:14:40.864422192 +0200 @@ -1,0 +2,5 @@ +Tue Sep 14 06:07:09 UTC 2021 - Paolo Stivanin <[email protected]> + +- Update to 8.0.4. No changelog. + +------------------------------------------------------------------- Old: ---- v8.0.3.tar.gz New: ---- v8.0.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ seafile.spec ++++++ --- /var/tmp/diff_new_pack.yKXljL/_old 2021-09-14 21:14:41.528422844 +0200 +++ /var/tmp/diff_new_pack.yKXljL/_new 2021-09-14 21:14:41.536422852 +0200 @@ -17,7 +17,7 @@ Name: seafile -Version: 8.0.3 +Version: 8.0.4 Release: 0 Summary: Cloud storage client License: GPL-2.0-only ++++++ v8.0.3.tar.gz -> v8.0.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/app/seaf-cli new/seafile-8.0.4/app/seaf-cli --- old/seafile-8.0.3/app/seaf-cli 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/app/seaf-cli 2021-09-13 10:11:54.000000000 +0200 @@ -280,7 +280,7 @@ def get_token(url, username, password, tfa, conf_dir): platform = 'linux' device_id = get_device_id(conf_dir) - device_name = 'terminal-' + os.uname()[1] + device_name = 'terminal-' + os.uname()[1][:25] client_version = SEAF_CLI_VERSION platform_version = '' data = { @@ -424,13 +424,16 @@ username = user_from_config if not username: username = input("Enter username: ") - password = args.password - if not password: - password = getpass.getpass("Enter password for user %s : " % username) - tfa = args.tfa - # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token - token = get_token(url, username, password, tfa, conf_dir) + token = args.token + password = None + tfa = args.tfa + if not token: + password = args.password + if not password: + password = getpass.getpass("Enter password for user %s : " % username) + # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token + token = get_token(url, username, password, tfa, conf_dir) repos = get_repo_download_info("%s/api2/repos/" % (url), token) @@ -503,13 +506,15 @@ username = user_from_config if not username: username = input("Enter username: ") - password = args.password - if not password: - password = getpass.getpass("Enter password for user %s : " % username) + token = args.token + password = None tfa = args.tfa - - # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token - token = get_token(url, username, password, tfa, conf_dir) + if not token: + password = args.password + if not password: + password = getpass.getpass("Enter password for user %s : " % username) + # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token + token = get_token(url, username, password, tfa, conf_dir) tmp = get_repo_download_info("%s/api2/repos/%s/download-info/" % (url, repo), token) @@ -590,14 +595,17 @@ if not username: username = input("Enter username: ") args.username = username - password = args.password - if not password: - password = getpass.getpass("Enter password for user %s : " % username) - args.password = password - tfa = args.tfa - # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token - token = get_token(url, username, password, tfa, conf_dir) + token = args.token + password = None + tfa = args.tfa + if not token: + password = args.password + if not password: + password = getpass.getpass("Enter password for user %s : " % username) + args.password = password + # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token + token = get_token(url, username, password, tfa, conf_dir) tmp = get_repo_download_info("%s/api2/repos/" % (url), token) @@ -656,12 +664,16 @@ username = user_from_config; if not username: username = input("Enter username: ") - password = args.password - if not password: - password = getpass.getpass("Enter password for user %s : " % username) + + password = None + token = args.token tfa = args.tfa + if not token: + password = args.password + if not password: + password = getpass.getpass("Enter password for user %s : " % username) + token = get_token(url, username, password, tfa, conf_dir) - token = get_token(url, username, password, tfa, conf_dir) tmp = get_repo_download_info("%s/api2/repos/%s/download-info/" % (url, repo), token) encrypted = tmp['encrypted'] @@ -850,12 +862,7 @@ username = user_from_config; if not username: username = input("Enter username: ") - password = args.password - if not password: - password = getpass.getpass("Enter password for user %s " % username) - tfa = args.tfa - # check url url = args.server if not url and server_from_config: url = server_from_config @@ -863,8 +870,15 @@ print("Seafile server url need to be presented") sys.exit(1) - # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token - token = get_token(url, username, password, tfa, conf_dir) + token = args.token + password = None + tfa = args.tfa + if not token: + password = args.password + if not password: + password = getpass.getpass("Enter password for user %s " % username) + # curl -d 'username=<USERNAME>&password=<PASSWORD>' http://127.0.0.1:8000/api2/auth-token + token = get_token(url, username, password, tfa, conf_dir) repo_id = create_repo("%s/api2/repos/" % (url), token, args) print(repo_id) @@ -912,6 +926,7 @@ parser_download.add_argument('-s', '--server', help='URL for seafile server', type=str) parser_download.add_argument('-u', '--username', help='username', type=str) parser_download.add_argument('-p', '--password', help='password', type=str) + parser_download.add_argument('-T', '--token', help='token', type=str) parser_download.add_argument('-a', '--tfa', help='two-factor authentication', type=str) parser_download.add_argument('--json', help='output json format result', action='store_true') @@ -931,6 +946,7 @@ parser_download.add_argument('-d', '--dir', help='the directory to put the library', type=str) parser_download.add_argument('-u', '--username', help='username', type=str) parser_download.add_argument('-p', '--password', help='password', type=str) + parser_download.add_argument('-T', '--token', help='token', type=str) parser_download.add_argument('-a', '--tfa', help='two-factor authentication', type=str) parser_download.add_argument('-e', '--libpasswd', help='library password', type=str) @@ -945,6 +961,7 @@ parser_download.add_argument('-d', '--dir', help='the directory to put the library', type=str) parser_download.add_argument('-u', '--username', help='username', type=str) parser_download.add_argument('-p', '--password', help='password', type=str) + parser_download.add_argument('-T', '--token', help='token', type=str) parser_download.add_argument('-a', '--tfa', help='two-factor authentication', type=str) parser_download.add_argument('-e', '--libpasswd', help='library password', type=str) @@ -959,6 +976,7 @@ parser_sync.add_argument('-s', '--server', help='URL for seafile server', type=str) parser_sync.add_argument('-u', '--username', help='username', type=str) parser_sync.add_argument('-p', '--password', help='password', type=str) + parser_sync.add_argument('-T', '--token', help='token', type=str) parser_sync.add_argument('-a', '--tfa', help='two-factor authentication', type=str) parser_sync.add_argument('-d', '--folder', help='the existing local folder', type=str) parser_sync.add_argument('-e', '--libpasswd', help='library password', type=str) @@ -980,6 +998,7 @@ parser_create.add_argument('-s', '--server', help='URL for seafile server', type=str) parser_create.add_argument('-u', '--username', help='username', type=str) parser_create.add_argument('-p', '--password', help='password', type=str) + parser_create.add_argument('-T', '--token', help='token', type=str) parser_create.add_argument('-a', '--tfa', help='two-factor authentication', type=str) parser_create.add_argument('-c', '--confdir', help='the config directory', type=str, required=confdir_required) parser_create.add_argument('-C', help='the user config directory', type=str) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/configure.ac new/seafile-8.0.4/configure.ac --- old/seafile-8.0.3/configure.ac 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/configure.ac 2021-09-13 10:11:54.000000000 +0200 @@ -2,7 +2,7 @@ AC_PREREQ(2.61) -AC_INIT([seafile], [8.0.3], [[email protected]]) +AC_INIT([seafile], [8.0.4], [[email protected]]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([m4]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/daemon/repo-mgr.c new/seafile-8.0.4/daemon/repo-mgr.c --- old/seafile-8.0.3/daemon/repo-mgr.c 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/daemon/repo-mgr.c 2021-09-13 10:11:54.000000000 +0200 @@ -698,12 +698,12 @@ if (path != NULL) sql = sqlite3_mprintf ("INSERT INTO FileSyncError " "(repo_id, repo_name, path, err_id, timestamp) " - "VALUES ('%q', '%q', '%q', %d, %"G_GINT64_FORMAT")", + "VALUES ('%q', '%q', '%q', %d, %lld)", repo_id, repo_name, path, error_id, (gint64)time(NULL)); else sql = sqlite3_mprintf ("INSERT INTO FileSyncError " "(repo_id, repo_name, err_id, timestamp) " - "VALUES ('%q', '%q', %d, %"G_GINT64_FORMAT")", + "VALUES ('%q', '%q', %d, %lld)", repo_id, repo_name, error_id, (gint64)time(NULL)); ret = sqlite_query_exec (seaf->repo_mgr->priv->db, sql); @@ -1364,7 +1364,9 @@ #ifndef WIN32 base_name = g_path_get_basename(full_path); - if (check_path_ignore_on_windows (base_name)) { + if (!seaf->hide_windows_incompatible_path_notification && + check_path_ignore_on_windows (base_name)) { + send_file_sync_error_notification (repo_id, NULL, path, SYNC_ERROR_ID_INVALID_PATH_ON_WINDOWS); } @@ -1488,7 +1490,9 @@ } base_name = g_path_get_basename(full_path); - if (check_path_ignore_on_windows (base_name)) { + if (!seaf->hide_windows_incompatible_path_notification && + check_path_ignore_on_windows (base_name)) { + send_file_sync_error_notification (params->repo_id, NULL, path, SYNC_ERROR_ID_INVALID_PATH_ON_WINDOWS); } @@ -2323,7 +2327,9 @@ #ifndef WIN32 char *base_name = g_path_get_basename(full_path); - if (check_path_ignore_on_windows (base_name)) { + if (!seaf->hide_windows_incompatible_path_notification && + check_path_ignore_on_windows (base_name)) { + send_file_sync_error_notification (repo->id, repo->name, path, SYNC_ERROR_ID_INVALID_PATH_ON_WINDOWS); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/daemon/seafile-config.c new/seafile-8.0.4/daemon/seafile-config.c --- old/seafile-8.0.3/daemon/seafile-config.c 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/daemon/seafile-config.c 2021-09-13 10:11:54.000000000 +0200 @@ -142,6 +142,13 @@ session->http_proxy_password = g_strdup(value); } + if (g_strcmp0(key, KEY_HIDE_WINDOWS_INCOMPATIBLE_PATH_NOTIFICATION) == 0) { + if (g_strcmp0(value, "true") == 0) + session->hide_windows_incompatible_path_notification = TRUE; + else + session->hide_windows_incompatible_path_notification = FALSE; + } + return 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/daemon/seafile-config.h new/seafile-8.0.4/daemon/seafile-config.h --- old/seafile-8.0.3/daemon/seafile-config.h 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/daemon/seafile-config.h 2021-09-13 10:11:54.000000000 +0200 @@ -22,6 +22,7 @@ #define KEY_ALLOW_REPO_NOT_FOUND_ON_SERVER "allow_repo_not_found_on_server" #define KEY_SYNC_EXTRA_TEMP_FILE "sync_extra_temp_file" #define KEY_DISABLE_BLOCK_HASH "disable_block_hash" +#define KEY_HIDE_WINDOWS_INCOMPATIBLE_PATH_NOTIFICATION "hide_windows_incompatible_path_notification" /* Http sync settings. */ #define KEY_ENABLE_HTTP_SYNC "enable_http_sync" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/daemon/seafile-session.c new/seafile-8.0.4/daemon/seafile-session.c --- old/seafile-8.0.3/daemon/seafile-session.c 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/daemon/seafile-session.c 2021-09-13 10:11:54.000000000 +0200 @@ -428,6 +428,9 @@ session->disable_block_hash = seafile_session_config_get_bool (session, KEY_DISABLE_BLOCK_HASH); + session->hide_windows_incompatible_path_notification = + seafile_session_config_get_bool (session, KEY_HIDE_WINDOWS_INCOMPATIBLE_PATH_NOTIFICATION); + /* Start mq manager earlier, so that we can send notifications * when start repo manager. */ seaf_mq_manager_init (session->mq_mgr); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/daemon/seafile-session.h new/seafile-8.0.4/daemon/seafile-session.h --- old/seafile-8.0.3/daemon/seafile-session.h 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/daemon/seafile-session.h 2021-09-13 10:11:54.000000000 +0200 @@ -79,6 +79,8 @@ gboolean disable_verify_certificate; gboolean disable_block_hash; + + gboolean hide_windows_incompatible_path_notification; gboolean use_http_proxy; char *http_proxy_type; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/debian/changelog new/seafile-8.0.4/debian/changelog --- old/seafile-8.0.3/debian/changelog 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/debian/changelog 2021-09-13 10:11:54.000000000 +0200 @@ -1,3 +1,8 @@ +seafile-daemon (8.0.4) unstable; urgency=low + + * new upstream release + + -- Jonathan Xu <[email protected]> Mon, 13 Sep 2021 15:58:21 +0800 seafile-daemon (8.0.3) unstable; urgency=low * new upstream release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/msi/Includes.wxi new/seafile-8.0.4/msi/Includes.wxi --- old/seafile-8.0.3/msi/Includes.wxi 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/msi/Includes.wxi 2021-09-13 10:11:54.000000000 +0200 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <Include Id="SeafileInclude"> - <?define CurrentSeafileVersion="8.0.3" ?> + <?define CurrentSeafileVersion="8.0.4" ?> <!-- Update Guid ????????? --> <?define CurrentUpdateGuid="65DED1C8-A5F1-4C49-8E7E-B0A8A5A6535C" ?> @@ -146,7 +146,8 @@ <!-- <?define ProductGuid="CE032912-6DCF-4C5F-A447-AC303D0530A7" ?> (8.0.0) --> <!-- <?define ProductGuid="93B20E38-EFF9-4CD8-BFF4-F0DF21DEADB8" ?> (8.0.1) --> <!-- <?define ProductGuid="8F8A6FBA-EAD1-4B16-B074-03C1BA4E1109" ?> (8.0.2) --> - <?define ProductGuid="82A1C721-6B4E-473B-B515-8D0B9242C6A6" ?> + <!-- <?define ProductGuid="82A1C721-6B4E-473B-B515-8D0B9242C6A6" ?> (8.0.3) --> + <?define ProductGuid="B4ACB0CA-854E-4087-B9F5-7382924D7C49" ?> <?define GuidOfCustomComponent="AD201805-3CBD-4834-9097-5D934F7E0000" ?> <?define GuidOfAutoStartComponent="AD201805-3CBD-4834-9097-5D934F7E0001" ?> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/scripts/build/build-mac-local.py new/seafile-8.0.4/scripts/build/build-mac-local.py --- old/seafile-8.0.3/scripts/build/build-mac-local.py 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/scripts/build/build-mac-local.py 2021-09-13 10:11:54.000000000 +0200 @@ -622,7 +622,7 @@ # Rename the .app dir to 'Seafile Client.app', and create the shortcut # to '/Applications' so the user can drag into it when opening the DMG. - brand = conf.get('CONF_BRAND') + brand = conf.get('CONF_BRAND', '') if brand: final_app = '{}.app'.format(brand) else: @@ -767,7 +767,7 @@ error('failed to sign {}'.format(path)) def copy_dmg(): - brand = 'seafile-client' + brand = conf[CONF_BRAND] or 'seafile-client' branded_dmg = '{}-{}.dmg'.format(brand, conf[CONF_VERSION]) src_dmg = os.path.join(BUILDDIR, 'app-{}.dmg'.format(conf[CONF_VERSION])) dst_dmg = os.path.join(BUILDDIR, branded_dmg) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/seafile-8.0.3/seafile.vcxproj new/seafile-8.0.4/seafile.vcxproj --- old/seafile-8.0.3/seafile.vcxproj 2021-06-24 08:03:18.000000000 +0200 +++ new/seafile-8.0.4/seafile.vcxproj 2021-09-13 10:11:54.000000000 +0200 @@ -92,7 +92,7 @@ <WarningLevel>Level3</WarningLevel> <SDLCheck> </SDLCheck> - <PreprocessorDefinitions>WIN32;UNICODE;WIN32_LEAN_AND_MEAN;SEAFILE_CLIENT;PACKAGE_VERSION="8.0.3";%(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>WIN32;UNICODE;WIN32_LEAN_AND_MEAN;SEAFILE_CLIENT;PACKAGE_VERSION="8.0.4";%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>false</ConformanceMode> <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions> <AdditionalIncludeDirectories>$(ProjectDir)..\libsearpc\lib;$(ProjectDir)common;$(ProjectDir)lib;$(ProjectDir)include;$(ProjectDir)daemon;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> @@ -110,7 +110,7 @@ <WarningLevel>Level1</WarningLevel> <SDLCheck> </SDLCheck> - <PreprocessorDefinitions>WIN32;UNICODE;WIN32_LEAN_AND_MEAN;SEAFILE_CLIENT;PACKAGE_VERSION="8.0.3";%(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>WIN32;UNICODE;WIN32_LEAN_AND_MEAN;SEAFILE_CLIENT;PACKAGE_VERSION="8.0.4";%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>false</ConformanceMode> <LanguageStandard>stdcpp17</LanguageStandard> <AdditionalIncludeDirectories>$(ProjectDir)..\libsearpc\lib;$(ProjectDir)common;$(ProjectDir)include;$(ProjectDir)daemon;$(ProjectDir)lib;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> @@ -131,7 +131,7 @@ <IntrinsicFunctions>false</IntrinsicFunctions> <SDLCheck> </SDLCheck> - <PreprocessorDefinitions>WIN32;PACKAGE_VERSION="8.0.3";WIN32_LEAN_AND_MEAN;UNICODE;SEAFILE_CLIENT;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>WIN32;PACKAGE_VERSION="8.0.4";WIN32_LEAN_AND_MEAN;UNICODE;SEAFILE_CLIENT;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>false</ConformanceMode> <LanguageStandard>stdcpp17</LanguageStandard> <AdditionalIncludeDirectories>$(ProjectDir)..\libsearpc\lib;$(ProjectDir);$(ProjectDir)daemon;$(ProjectDir)include;$(ProjectDir)lib;$(ProjectDir)common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> @@ -158,7 +158,7 @@ <IntrinsicFunctions>false</IntrinsicFunctions> <SDLCheck> </SDLCheck> - <PreprocessorDefinitions>WIN32;PACKAGE_VERSION="8.0.3";WIN32_LEAN_AND_MEAN;UNICODE;SEAFILE_CLIENT;ENABLE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>WIN32;PACKAGE_VERSION="8.0.4";WIN32_LEAN_AND_MEAN;UNICODE;SEAFILE_CLIENT;ENABLE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>false</ConformanceMode> <LanguageStandard>stdcpp17</LanguageStandard> <AdditionalIncludeDirectories>$(ProjectDir)..\libsearpc\lib;$(ProjectDir);$(ProjectDir)common;$(ProjectDir)lib;$(ProjectDir)include;$(ProjectDir)daemon;$(ProjectDir)..\breakpad\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
