From 1196db5f2096f60b4c1139f80101dea6c905ed6b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Jan 2017 21:29:19 +0530 Subject: [PATCH] Fix #1654211 [calibre does not build reproducibly](https://bugs.launchpad.net/calibre/+bug/1654211) --- src/calibre/linux.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index 31a115546f..a098ea630c 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -87,6 +87,8 @@ class PreserveMIMEDefaults(object): raise # Uninstall script {{{ + + UNINSTALL = '''\ #!{python} from __future__ import print_function, unicode_literals @@ -559,7 +561,7 @@ def write_completion(bash_comp_dest, zsh): '--exec-file':['py', 'recipe'], '--add-simple-plugin':['py'], '--inspect-mobi':['mobi', 'azw', 'azw3'], - '--viewer':list(available_input_formats()), + '--viewer':sorted(available_input_formats()), }) f.write(textwrap.dedent(''' _ebook_device_ls() @@ -932,6 +934,7 @@ def opts_and_words(name, op, words, takes_files=False): } complete -F _'''%(opts, words) + fname + ' ' + name +"\n\n").encode('utf-8') + pics = {'jpg', 'jpeg', 'gif', 'png', 'bmp'} @@ -1148,4 +1151,3 @@ def cli_index_strings(): if __name__ == '__main__': sys.exit(main()) -