Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package seafile for openSUSE:Factory checked 
in at 2022-05-09 18:44:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/seafile (Old)
 and      /work/SRC/openSUSE:Factory/.seafile.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "seafile"

Mon May  9 18:44:33 2022 rev:12 rq:975828 version:8.0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/seafile/seafile.changes  2022-02-24 
18:24:34.054641070 +0100
+++ /work/SRC/openSUSE:Factory/.seafile.new.1538/seafile.changes        
2022-05-09 18:45:31.916308001 +0200
@@ -1,0 +2,5 @@
+Mon May  9 12:18:24 UTC 2022 - Paolo Stivanin <[email protected]>
+
+- Update to 8.0.7 (no changelog)
+
+-------------------------------------------------------------------

Old:
----
  v8.0.6.tar.gz

New:
----
  v8.0.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ seafile.spec ++++++
--- /var/tmp/diff_new_pack.ITR8BS/_old  2022-05-09 18:45:32.516308705 +0200
+++ /var/tmp/diff_new_pack.ITR8BS/_new  2022-05-09 18:45:32.520308709 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           seafile
-Version:        8.0.6
+Version:        8.0.7
 Release:        0
 Summary:        Cloud storage client
 License:        GPL-2.0-only

++++++ v8.0.6.tar.gz -> v8.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seafile-8.0.6/README.markdown 
new/seafile-8.0.7/README.markdown
--- old/seafile-8.0.6/README.markdown   2022-02-23 10:29:20.000000000 +0100
+++ new/seafile-8.0.7/README.markdown   2022-04-25 12:27:18.000000000 +0200
@@ -64,7 +64,7 @@
 Build and Run
 =============
 
-See <http://manual.seafile.com/build_seafile/server.html>
+See <https://manual.seafile.com/build_seafile/server>
 
 Bug and Feature Request Reports
 ===============================
@@ -100,7 +100,7 @@
 Contributing
 ===========
 
-For more information read 
[Contribution](http://manual.seafile.com/contribution.html).
+For more information read 
[Contribution](https://manual.seafile.com/contribution/).
 
 
 License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seafile-8.0.6/configure.ac 
new/seafile-8.0.7/configure.ac
--- old/seafile-8.0.6/configure.ac      2022-02-23 10:29:20.000000000 +0100
+++ new/seafile-8.0.7/configure.ac      2022-04-25 12:27:18.000000000 +0200
@@ -2,7 +2,7 @@
 
 
 AC_PREREQ(2.61)
-AC_INIT([seafile], [8.0.6], [[email protected]])
+AC_INIT([seafile], [8.0.7], [[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.6/daemon/change-set.c 
new/seafile-8.0.7/daemon/change-set.c
--- old/seafile-8.0.6/daemon/change-set.c       2022-02-23 10:29:20.000000000 
+0100
+++ new/seafile-8.0.7/daemon/change-set.c       2022-04-25 12:27:18.000000000 
+0200
@@ -271,14 +271,14 @@
     g_free (changeset);
 }
 
-static void
+static gboolean
 update_file (ChangeSetDirent *dent,
              unsigned char *sha1,
              SeafStat *st,
              const char *modifier)
 {
     if (!sha1 || !st || !S_ISREG(st->st_mode))
-        return;
+        return FALSE;
     dent->mode = create_ce_mode(st->st_mode);
     dent->mtime = (gint64)st->st_mtime;
     dent->size = (gint64)st->st_size;
@@ -286,6 +286,8 @@
 
     g_free (dent->modifier);
     dent->modifier = g_strdup(modifier);
+
+    return TRUE;
 }
 
 static void
@@ -313,11 +315,16 @@
 }
 
 static ChangeSetDir *
-create_intermediate_dir (ChangeSetDir *parent, const char *dname)
+create_intermediate_dir (ChangeSetDir *parent, const char *dname, SeafStat *st)
 {
     ChangeSetDirent *dent;
+    gint64 mtime = 0;
+
+    if (st) {
+        mtime = st->st_mtime;
+    }
 
-    dent = changeset_dirent_new (EMPTY_SHA1, S_IFDIR, dname, 0, NULL, 0);
+    dent = changeset_dirent_new (EMPTY_SHA1, S_IFDIR, dname, mtime, NULL, 0);
     dent->subdir = changeset_dir_new (parent->version, EMPTY_SHA1, NULL);
     add_dent_to_dir (parent, dent);
 
@@ -368,7 +375,9 @@
     int n, i;
     ChangeSetDir *dir;
     ChangeSetDirent *dent;
+    ChangeSetDirent *parent_dent = NULL;
     SeafDir *seaf_dir;
+    gboolean changed;
 
     parts = g_strsplit (path, "/", 0);
     n = g_strv_length(parts);
@@ -400,10 +409,15 @@
                     seaf_dir_free (seaf_dir);
                 }
                 dir = dent->subdir;
+                parent_dent = dent;
             } else if (S_ISREG(dent->mode)) {
                 if (i == (n-1)) {
                     /* File exists, update it. */
-                    update_file (dent, sha1, st, modifier);
+                    changed = update_file (dent, sha1, st, modifier);
+                    // update parent dir mtime when modify files locally.
+                    if (parent_dent && changed) {
+                        parent_dent->mtime = st->st_mtime;
+                    }
                     break;
                 }
             }
@@ -429,9 +443,16 @@
 #endif
 
             if (i == (n-1)) {
+                if (parent_dent && new_dent) {
+                    // update parent dir mtime when rename files locally.
+                    parent_dent->mtime = time(NULL);
+                } else if (parent_dent && st) {
+                    // update parent dir mtime when add files locally.
+                    parent_dent->mtime = st->st_mtime;
+                }
                 create_new_dent (dir, dname, sha1, st, modifier, new_dent);
             } else {
-                dir = create_intermediate_dir (dir, dname);
+                dir = create_intermediate_dir (dir, dname, st);
             }
         }
     }
@@ -450,6 +471,7 @@
     int n, i;
     ChangeSetDir *dir;
     ChangeSetDirent *dent, *ret = NULL;
+    ChangeSetDirent *parent_dent = NULL;
     SeafDir *seaf_dir;
 
     *parent_empty = FALSE;
@@ -471,6 +493,10 @@
                 if (g_hash_table_size (dir->dents) == 0)
                     *parent_empty = TRUE;
                 ret = dent;
+                // update parent dir mtime when delete dirs locally.
+                if (parent_dent) {
+                    parent_dent->mtime = time (NULL);
+                }
                 break;
             }
 
@@ -488,6 +514,7 @@
                 seaf_dir_free (seaf_dir);
             }
             dir = dent->subdir;
+            parent_dent = dent;
         } else if (S_ISREG(dent->mode)) {
             if (i == (n-1)) {
                 /* Remove from hash table without freeing dent. */
@@ -495,6 +522,10 @@
                 if (g_hash_table_size (dir->dents) == 0)
                     *parent_empty = TRUE;
                 ret = dent;
+                // update parent dir mtime when delete files locally.
+                if (parent_dent) {
+                    parent_dent->mtime = time (NULL);
+                }
                 break;
             }
         }
@@ -588,14 +619,12 @@
 }
 
 static char *
-commit_tree_recursive (const char *repo_id, ChangeSetDir *dir, gint64 
*new_mtime)
+commit_tree_recursive (const char *repo_id, ChangeSetDir *dir)
 {
     ChangeSetDirent *dent;
     GHashTableIter iter;
     gpointer key, value;
     char *new_id;
-    gint64 subdir_new_mtime;
-    gint64 dir_mtime = 0;
     SeafDir *seaf_dir;
     char *ret = NULL;
 
@@ -603,16 +632,13 @@
     while (g_hash_table_iter_next (&iter, &key, &value)) {
         dent = value;
         if (dent->subdir) {
-            new_id = commit_tree_recursive (repo_id, dent->subdir, 
&subdir_new_mtime);
+            new_id = commit_tree_recursive (repo_id, dent->subdir);
             if (!new_id)
                 return NULL;
 
             memcpy (dent->id, new_id, 40);
-            dent->mtime = subdir_new_mtime;
             g_free (new_id);
         }
-        if (dir_mtime < dent->mtime)
-            dir_mtime = dent->mtime;
     }
 
     seaf_dir = changeset_dir_to_seaf_dir (dir);
@@ -632,9 +658,6 @@
     ret = g_strdup(seaf_dir->dir_id);
 
 out:
-    if (ret != NULL)
-        *new_mtime = dir_mtime;
-
     seaf_dir_free (seaf_dir);
     return ret;
 }
@@ -648,10 +671,8 @@
 char *
 commit_tree_from_changeset (ChangeSet *changeset)
 {
-    gint64 mtime;
     char *root_id = commit_tree_recursive (changeset->repo_id,
-                                           changeset->tree_root,
-                                           &mtime);
+                                           changeset->tree_root);
 
     return root_id;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seafile-8.0.6/debian/changelog 
new/seafile-8.0.7/debian/changelog
--- old/seafile-8.0.6/debian/changelog  2022-02-23 10:29:20.000000000 +0100
+++ new/seafile-8.0.7/debian/changelog  2022-04-25 12:27:18.000000000 +0200
@@ -1,3 +1,8 @@
+seafile-daemon (8.0.7) unstable; urgency=low
+
+  * new upstream relase
+
+ -- Jonathan Xu <[email protected]>  Sun, 24 Apr  2022 10:34:42 +0800
 seafile-daemon (8.0.6) unstable; urgency=low
 
   * new upstream relase
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seafile-8.0.6/include/seafile.h 
new/seafile-8.0.7/include/seafile.h
--- old/seafile-8.0.6/include/seafile.h 2022-02-23 10:29:20.000000000 +0100
+++ new/seafile-8.0.7/include/seafile.h 2022-04-25 12:27:18.000000000 +0200
@@ -3,6 +3,10 @@
 #ifndef SEAFILE_H
 #define SEAFILE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int seafile_destroy_repo (SearpcClient *client,
                           const char *repo_id, GError **error);
 
@@ -39,5 +43,8 @@
 
 int seafile_calc_dir_size (SearpcClient *client, const char *path, GError 
**error);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seafile-8.0.6/msi/Includes.wxi 
new/seafile-8.0.7/msi/Includes.wxi
--- old/seafile-8.0.6/msi/Includes.wxi  2022-02-23 10:29:20.000000000 +0100
+++ new/seafile-8.0.7/msi/Includes.wxi  2022-04-25 12:27:18.000000000 +0200
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Include Id="SeafileInclude">
-  <?define CurrentSeafileVersion="8.0.6" ?>
+  <?define CurrentSeafileVersion="8.0.7" ?>
 
   <!-- Update Guid ????????? -->
   <?define CurrentUpdateGuid="65DED1C8-A5F1-4C49-8E7E-B0A8A5A6535C" ?>
@@ -149,7 +149,8 @@
   <!-- <?define ProductGuid="82A1C721-6B4E-473B-B515-8D0B9242C6A6" ?> (8.0.3) 
-->
   <!-- <?define ProductGuid="B4ACB0CA-854E-4087-B9F5-7382924D7C49" ?> (8.0.4) 
-->
   <!-- <?define ProductGuid="02E0FA9C-6C8A-4F87-924B-D33EF51EB9DE" ?> (8.0.5) 
-->
-  <?define ProductGuid="7EB8EE37-06D5-4119-84B4-5369AAF20041" ?>
+  <!-- <?define ProductGuid="7EB8EE37-06D5-4119-84B4-5369AAF20041" ?> (8.0.6) 
-->
+  <?define ProductGuid="A1210D1B-4DE1-4A01-85DF-779BE1C10790" ?>
 
   <?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.6/scripts/build/build-msi-vs.py 
new/seafile-8.0.7/scripts/build/build-msi-vs.py
--- old/seafile-8.0.6/scripts/build/build-msi-vs.py     2022-02-23 
10:29:20.000000000 +0100
+++ new/seafile-8.0.7/scripts/build/build-msi-vs.py     2022-04-25 
12:27:18.000000000 +0200
@@ -371,8 +371,8 @@
                  ' -loc %s -cultures:%s -sice:ICE80' % (LANG_FILE, CULTURE)
 
 
-    generator_fragment_cmd = "%s/Paraffin.exe -dir bin -g -alias bin \
-        -custom bin fragment.wxs" %(WIX_BIN)
+    generator_fragment_cmd = "%s/Paraffin.exe -dir bin -alias bin -gn 
group_bin \
+        fragment.wxs" %(WIX_BIN)
     if run(generator_fragment_cmd, cwd=WIX_PACKAGE_DIR) != 0:
         error('error wherunning command:\n\t%s\n' % generator_fragment_cmd)
 
@@ -445,7 +445,7 @@
         for line in fp:
             if 'seafile-applet.exe' in line:
                 # change the id of 'seafile-applet.exe' to 'seafileapplet.exe'
-                new_line = re.sub(r'file_bin_[\d]+', 'seafileapplet.exe', line)
+                new_line = re.sub(r'file_[\w]+', 'seafileapplet.exe', line)
                 new_lines.append(new_line)
             else:
                 new_lines.append(line)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seafile-8.0.6/seafile.vcxproj 
new/seafile-8.0.7/seafile.vcxproj
--- old/seafile-8.0.6/seafile.vcxproj   2022-02-23 10:29:20.000000000 +0100
+++ new/seafile-8.0.7/seafile.vcxproj   2022-04-25 12:27:18.000000000 +0200
@@ -92,7 +92,7 @@
       <WarningLevel>Level3</WarningLevel>
       <SDLCheck>
       </SDLCheck>
-      
<PreprocessorDefinitions>WIN32;UNICODE;WIN32_LEAN_AND_MEAN;SEAFILE_CLIENT;PACKAGE_VERSION="8.0.6";%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      
<PreprocessorDefinitions>WIN32;UNICODE;WIN32_LEAN_AND_MEAN;SEAFILE_CLIENT;PACKAGE_VERSION="8.0.7";%(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.6";%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      
<PreprocessorDefinitions>WIN32;UNICODE;WIN32_LEAN_AND_MEAN;SEAFILE_CLIENT;PACKAGE_VERSION="8.0.7";%(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.6";WIN32_LEAN_AND_MEAN;UNICODE;SEAFILE_CLIENT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      
<PreprocessorDefinitions>WIN32;PACKAGE_VERSION="8.0.7";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.6";WIN32_LEAN_AND_MEAN;UNICODE;SEAFILE_CLIENT;ENABLE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+     
<PreprocessorDefinitions>WIN32;PACKAGE_VERSION="8.0.7";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>

Reply via email to