diff -Nru rclone-1.53.3/debian/changelog rclone-1.53.3/debian/changelog --- rclone-1.53.3/debian/changelog 2021-12-31 20:12:35.000000000 +0000 +++ rclone-1.53.3/debian/changelog 2022-03-28 21:45:23.000000000 +0000 @@ -1,3 +1,11 @@ +rclone (1.53.3-4ubuntu1) jammy; urgency=medium + + * d/p/0008-fix-gdrive-download.patch: remove check for size, so google + docs are identified solely by not having an MD5 checksum + (LP: #1937136) + + -- Andreas Hasenack Mon, 28 Mar 2022 18:45:23 -0300 + rclone (1.53.3-4) unstable; urgency=medium * Team upload. diff -Nru rclone-1.53.3/debian/control rclone-1.53.3/debian/control --- rclone-1.53.3/debian/control 2021-12-31 20:12:35.000000000 +0000 +++ rclone-1.53.3/debian/control 2022-03-28 21:45:23.000000000 +0000 @@ -1,7 +1,8 @@ Source: rclone Section: net Priority: optional -Maintainer: Debian Go Packaging Team +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Go Packaging Team Uploaders: Dr. Tobias Quathamer Build-Depends: debhelper-compat (= 13), dh-sequence-bash-completion, diff -Nru rclone-1.53.3/debian/patches/0008-fix-gdrive-download.patch rclone-1.53.3/debian/patches/0008-fix-gdrive-download.patch --- rclone-1.53.3/debian/patches/0008-fix-gdrive-download.patch 1970-01-01 00:00:00.000000000 +0000 +++ rclone-1.53.3/debian/patches/0008-fix-gdrive-download.patch 2022-03-28 21:45:23.000000000 +0000 @@ -0,0 +1,52 @@ +From 94b1439299e57f84dec27e865fba2b7356f3ea79 Mon Sep 17 00:00:00 2001 +From: Nick Craig-Wood +Date: Wed, 14 Jul 2021 10:23:35 +0100 +Subject: [PATCH] drive: fix some google docs being treated as files - fixes + #5455 + +At some point some google docs files started having sizes returned in +their listing information. + +This then caused rclone to treat the docs as files which caused +downloads to fail. + +The API docs now state that google docs may have sizes (whereas I'm +pretty sure it didn't earlier). + +This fix removes the check for size, so google docs are identified +solely by not having an MD5 checksum. +--- + backend/drive/drive.go | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +Origin: upstream, https://github.com/rclone/rclone/commit/94b1439299e57f84dec27e865fba2b7356f3ea79 +Bug: https://github.com/rclone/rclone/issues/5455 +Bug-Debian: https://bugs.debian.org/991124 +Bug-Ubuntu: https://bugs.launchpad.net/rclone/+bug/1937136 +Applied-Upstream: 1.56.0 +Last-Update: 2022-03-28 + +--- a/backend/drive/drive.go ++++ b/backend/drive/drive.go +@@ -1295,8 +1295,8 @@ + // + // When the drive.File cannot be represented as an fs.Object it will return (nil, nil). + func (f *Fs) newObjectWithInfo(remote string, info *drive.File) (fs.Object, error) { +- // If item has MD5 sum or a length it is a file stored on drive +- if info.Md5Checksum != "" || info.Size > 0 { ++ // If item has MD5 sum it is a file stored on drive ++ if info.Md5Checksum != "" { + return f.newRegularObject(remote, info), nil + } + +@@ -1329,8 +1329,8 @@ + // Pretend a dangling shortcut is a regular object + // It will error if used, but appear in listings so it can be deleted + return f.newRegularObject(remote, info), nil +- case info.Md5Checksum != "" || info.Size > 0: +- // If item has MD5 sum or a length it is a file stored on drive ++ case info.Md5Checksum != "": ++ // If item has MD5 sum it is a file stored on drive + return f.newRegularObject(remote, info), nil + case f.opt.SkipGdocs: + fs.Debugf(remote, "Skipping google document type %q", info.MimeType) diff -Nru rclone-1.53.3/debian/patches/series rclone-1.53.3/debian/patches/series --- rclone-1.53.3/debian/patches/series 2021-12-31 20:12:35.000000000 +0000 +++ rclone-1.53.3/debian/patches/series 2022-03-28 21:45:23.000000000 +0000 @@ -4,6 +4,7 @@ 0004-Disable-FTP-server-of-rclone.patch 0005-Do-not-include-installation-instructions-in-manpage.patch 0007-Remove-script-to-disable-possible-privacy-breach.patch +0008-fix-gdrive-download.patch ignore_tardigrade_backend.patch skip_TestParseDuration.patch skip_sftp_webdav_TestIntegration.patch