Debian Codegraph @

debian/patches/0003_Tabview_Optional.patch

raw
1 Tabview is currently not packaged in Debian (see BTS #811294). It is listed as
2 an optional dependency, but if it's absent, it crashes the whole CLI tool. With
3 this patch, only the `clevercsv view` command will fail, instead of the whole
4 program.
5 Index: python-clevercsv/clevercsv/console/commands/view.py
6 ===================================================================
7 --- python-clevercsv.orig/clevercsv/console/commands/view.py
8 +++ python-clevercsv/clevercsv/console/commands/view.py
9 @@ -61,7 +61,7 @@ class ViewCommand(Command):
10 )
11 return
12
13 - import_optional_dependency("tabview", raise_on_missing=True)
14 + import_optional_dependency("tabview", raise_on_missing=False)
15 from tabview import view
16
17 view(rows)