0001-Fix-mixed-tab-space-indentation.patch 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. From bf4e5310547603bf36e67dc4cba027963f16508e Mon Sep 17 00:00:00 2001
  2. From: =?utf-8?q?Ga=C3=ABl=20PORTAY?= <gael.portay@savoirfairelinux.com>
  3. Date: Fri, 4 Nov 2016 11:53:48 -0400
  4. Subject: [PATCH 1/3] Fix mixed tab/space indentation
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=utf-8
  7. Content-Transfer-Encoding: 8bit
  8. CC="cc -pipe -std=gnu99 -Wall -W -Wextra -fPIC -D_LARGEFILE64_SOURCE -D_ATFILE_SOURCE -DPSEUDO_PREFIX='"/usr/local"' -DPSEUDO_SUFFIX='""' -DPSEUDO_BINDIR='"bin"' -DPSEUDO_LIBDIR='"lib64"' -DPSEUDO_LOCALSTATEDIR='"var/pseudo"' -DPSEUDO_VERSION='"1.8.1"' -DUSE_MEMORY_DB -DPSEUDO_PASSWD_FALLBACK='""' -DPSEUDO_XATTR_SUPPORT -O2 -g " ./makewrappers "xattr=true"
  9. File "./makewrappers", line 327
  10. return """/* This function is not called if pseudo is configured --enable-force-async */
  11. ^
  12. TabError: inconsistent use of tabs and spaces in indentation
  13. Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
  14. ---
  15. makewrappers | 26 +++++++++++++-------------
  16. 1 file changed, 13 insertions(+), 13 deletions(-)
  17. diff --git a/makewrappers b/makewrappers
  18. index e9191ed..303e2cc 100755
  19. --- a/makewrappers
  20. +++ b/makewrappers
  21. @@ -324,7 +324,7 @@ class Function:
  22. def maybe_async_skip(self):
  23. if self.async_skip:
  24. - return """/* This function is not called if pseudo is configured --enable-force-async */
  25. + return """/* This function is not called if pseudo is configured --enable-force-async */
  26. #ifdef PSEUDO_FORCE_ASYNC
  27. if (!pseudo_allow_fsync) {
  28. PROFILE_DONE;
  29. @@ -333,7 +333,7 @@ class Function:
  30. #endif
  31. """ % self.async_skip
  32. else:
  33. - return ""
  34. + return ""
  35. def comment(self):
  36. """declare self (in a comment)"""
  37. @@ -393,11 +393,11 @@ class Function:
  38. def rc_format(self):
  39. """the format string to use for the return value"""
  40. - return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['format']
  41. + return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['format']
  42. def rc_value(self):
  43. """the value to pass for the format string for the return value"""
  44. - return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['value']
  45. + return typedata.get(self.type, { 'format': '[%s]', 'value': '"' + self.type + '"' })['value']
  46. def rc_decl(self):
  47. """declare rc (if needed)"""
  48. @@ -456,7 +456,7 @@ additional ports to include.
  49. self.name = port
  50. self.subports = []
  51. self.preports = []
  52. - print port
  53. + print port
  54. if os.path.exists(self.portfile("pseudo_wrappers.c")):
  55. self.wrappers = self.portfile("pseudo_wrappers.c")
  56. @@ -522,11 +522,11 @@ additional ports to include.
  57. return '#define PSEUDO_PORT_%s 1' % string.upper(self.name).replace('/', '_')
  58. def portdeps(self):
  59. - deps = []
  60. - if self.wrappers:
  61. - deps.append(self.wrappers)
  62. - if self.portdef_file:
  63. - deps.append(self.portdef_file)
  64. + deps = []
  65. + if self.wrappers:
  66. + deps.append(self.wrappers)
  67. + if self.portdef_file:
  68. + deps.append(self.portdef_file)
  69. if deps:
  70. return 'pseudo_wrappers.o: %s' % ' '.join(deps)
  71. else:
  72. @@ -590,7 +590,7 @@ def main(argv):
  73. for arg in argv:
  74. name, value = arg.split('=')
  75. - os.environ["port_" + name] = value
  76. + os.environ["port_" + name] = value
  77. # error checking helpfully provided by the exception handler
  78. copyright_file = open('guts/COPYRIGHT')
  79. @@ -599,9 +599,9 @@ def main(argv):
  80. for path in glob.glob('templates/*'):
  81. try:
  82. - print "Considering template: " + path
  83. + print "Considering template: " + path
  84. source = TemplateFile(path)
  85. - if source.name.endswith('.c') or source.name.endswith('.h'):
  86. + if source.name.endswith('.c') or source.name.endswith('.h'):
  87. source.emit('copyright')
  88. source.emit('header')
  89. sources.append(source)
  90. --
  91. 2.10.1