File: 0035-Fix-2076515-calibredb-list-command-ignores-fields-op.patch

package info (click to toggle)
calibre 6.13.0%2Brepack-2%2Bdeb12u5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,147,768 kB
  • sloc: python: 461,364; ansic: 80,698; cpp: 18,081; javascript: 2,855; xml: 1,297; sh: 892; sql: 683; objc: 544; makefile: 71; perl: 66; sed: 6
file content (25 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Kovid Goyal <kovid@kovidgoyal.net>
Date: Sun, 11 Aug 2024 20:18:29 +0530
Subject: Fix #2076515 [calibredb list command ignores fields
 option](https://bugs.launchpad.net/calibre/+bug/2076515)

Origin: backport, https://github.com/kovidgoyal/calibre/commit/34f7b9eaf4cba97412481f659abe35c3e85eb013.patch
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1079277
---
 src/calibre/db/cli/cmd_list.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/calibre/db/cli/cmd_list.py b/src/calibre/db/cli/cmd_list.py
index 65935b5..8dcb6e5 100644
--- a/src/calibre/db/cli/cmd_list.py
+++ b/src/calibre/db/cli/cmd_list.py
@@ -170,7 +170,7 @@ def do_list(
 ):
     if sort_by is None:
         ascending = True
-    if dbctx.is_remote and (template or template_file or template_title):
+    if dbctx.is_remote and (template or template_file):
         raise SystemExit(_('The use of templates is disallowed when connecting to remote servers for security reasons'))
     if 'template' in (f.strip() for f in fields):
         if template_file: