[packages/rclone] up to 1.67.0

atler atler at pld-linux.org
Tue Jun 18 13:35:32 CEST 2024


commit b69565424c169100a50ae3ac9b463ee7a60940a8
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jun 18 12:37:05 2024 +0200

    up to 1.67.0

 rclone.spec          |  8 ++++----
 webdav-modtime.patch | 14 +++++++-------
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/rclone.spec b/rclone.spec
index f343ac0..f6c0145 100644
--- a/rclone.spec
+++ b/rclone.spec
@@ -1,20 +1,20 @@
-%define		vendor_ver	1.66.0
+%define		vendor_ver	1.67.0
 
 Summary:	rsync for cloud storage
 Name:		rclone
-Version:	1.66.0
+Version:	1.67.0
 Release:	1
 License:	MIT
 Group:		Networking/Utilities
 #Source0Download: https://github.com/rclone/rclone/releases
 Source0:	https://github.com/rclone/rclone/releases/download/v%{version}/%{name}-v%{version}.tar.gz
-# Source0-md5:	ae301cfeecf0675209d0acbfd8eaf05a
+# Source0-md5:	5abe90cdae481ea887e64dd0d022e036
 # cd rclone-%{version}
 # go mod vendor
 # cd ..
 # tar cJf rclone-vendor-%{version}.tar.xz rclone-v%{version}/vendor
 Source1:	%{name}-vendor-%{vendor_ver}.tar.xz
-# Source1-md5:	acca3f3203821e5623497bccce73de75
+# Source1-md5:	fc849ad6cc0efc9ceb3c4eff1818e77b
 Patch0:		webdav-modtime.patch
 URL:		https://rclone.org/
 BuildRequires:	golang >= 1.20
diff --git a/webdav-modtime.patch b/webdav-modtime.patch
index ac61ec0..5613e93 100644
--- a/webdav-modtime.patch
+++ b/webdav-modtime.patch
@@ -59,9 +59,9 @@ index 801e8d970..c91e4950c 100644
   </D:set>
  </D:propertyupdate>
 @@ -1335,11 +1340,17 @@ var owncloudPropset = `<?xml version="1.0" encoding="utf-8" ?>
- // SetModTime sets the modification time of the local fs object
- func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error {
- 	if o.fs.propsetMtime {
+ 			checksums = "MD5:" + o.md5
+ 		}
+ 
 +		var modTimeStr string
 +		if o.fs.propNameMtime == "getlastmodified" {
 +			modTimeStr = modTime.Format(time.RFC1123)
@@ -75,8 +75,8 @@ index 801e8d970..c91e4950c 100644
 -			Body:       strings.NewReader(fmt.Sprintf(owncloudPropset, modTime.Unix())),
 +			Body:       strings.NewReader(fmt.Sprintf(mtimePropset, o.fs.propNameMtime, modTimeStr, o.fs.propNameMtime)),
  		}
- 		var result api.Multistatus
- 		var resp *http.Response
+ 		if checksums != "" {
+ 			opts.Body = strings.NewReader(fmt.Sprintf(owncloudPropsetWithChecksum, modTime.Unix(), checksums))
 -- 
 2.41.0
 
@@ -96,7 +96,7 @@ index c91e4950c..a8c7ffce8 100644
 --- a/backend/webdav/webdav.go
 +++ b/backend/webdav/webdav.go
 @@ -146,6 +146,14 @@ Set to 0 to disable chunked uploading.
- 			Help:     "Exclude ownCloud shares",
+ 			Help:     "Exclude ownCloud mounted storages",
  			Advanced: true,
  			Default:  false,
 +		}, {
@@ -111,9 +111,9 @@ index c91e4950c..a8c7ffce8 100644
  	})
  }
 @@ -162,6 +170,7 @@ type Options struct {
- 	PacerMinSleep      fs.Duration          `config:"pacer_min_sleep"`
  	ChunkSize          fs.SizeSuffix        `config:"nextcloud_chunk_size"`
  	ExcludeShares      bool                 `config:"owncloud_exclude_shares"`
+ 	ExcludeMounts      bool                 `config:"owncloud_exclude_mounts"`
 +	UpdateModTime      fs.Tristate          `config:"update_modtime"`
  }
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rclone.git/commitdiff/b69565424c169100a50ae3ac9b463ee7a60940a8



More information about the pld-cvs-commit mailing list