diff options
author | Tim Orling <timothy.t.orling@linux.intel.com> | 2017-11-23 21:14:42 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-13 14:00:51 +0000 |
commit | 69a910d2e7e440760d02e22f8fce90ee87e15d1d (patch) | |
tree | 2c18be59bb07e9701be74d4f68231dbff459f7ae /scripts/contrib/python/generate-manifest-2.7.py | |
parent | 7d950b99bdb0f3c91eb060d31711243a7d3366fc (diff) | |
download | poky-69a910d2e7e440760d02e22f8fce90ee87e15d1d.tar.gz |
python-*-manifest/generators: fix long line lengths
The generators create python-*-manifest.inc files with
lines over 2500 characters long which breaks sending
patches via git send-email (because of smtp limitation).
This patchset formats all the long lines into multiple lines.
(From OE-Core rev: 3a1900a5691466a04b24907067f43117b318ca7e)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/python/generate-manifest-2.7.py')
-rwxr-xr-x | scripts/contrib/python/generate-manifest-2.7.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/scripts/contrib/python/generate-manifest-2.7.py b/scripts/contrib/python/generate-manifest-2.7.py index 586b329c19..2491bd0bc4 100755 --- a/scripts/contrib/python/generate-manifest-2.7.py +++ b/scripts/contrib/python/generate-manifest-2.7.py | |||
@@ -88,9 +88,9 @@ class MakefileMaker: | |||
88 | # generate provides line | 88 | # generate provides line |
89 | # | 89 | # |
90 | 90 | ||
91 | provideLine = 'PROVIDES+="' | 91 | provideLine = 'PROVIDES+=" \\\n' |
92 | for name in sorted(self.packages): | 92 | for name in sorted(self.packages): |
93 | provideLine += "%s " % name | 93 | provideLine += " %s \\\n" % name |
94 | provideLine += '"' | 94 | provideLine += '"' |
95 | 95 | ||
96 | self.out( provideLine ) | 96 | self.out( provideLine ) |
@@ -100,14 +100,15 @@ class MakefileMaker: | |||
100 | # generate package line | 100 | # generate package line |
101 | # | 101 | # |
102 | 102 | ||
103 | packageLine = 'PACKAGES="${PN}-dbg ' | 103 | packageLine = 'PACKAGES=" \\\n' |
104 | packageLine += ' ${PN}-dbg \\\n' | ||
104 | for name in sorted(self.packages): | 105 | for name in sorted(self.packages): |
105 | if name.startswith("${PN}-distutils"): | 106 | if name.startswith("${PN}-distutils"): |
106 | if name == "${PN}-distutils": | 107 | if name == "${PN}-distutils": |
107 | packageLine += "%s-staticdev %s " % (name, name) | 108 | packageLine += " %s-staticdev %s \\\n" % (name, name) |
108 | elif name != '${PN}-dbg': | 109 | elif name != '${PN}-dbg': |
109 | packageLine += "%s " % name | 110 | packageLine += " %s \\\n" % name |
110 | packageLine += '${PN}-modules"' | 111 | packageLine += ' ${PN}-modules\\\n"' |
111 | 112 | ||
112 | self.out( packageLine ) | 113 | self.out( packageLine ) |
113 | self.out( "" ) | 114 | self.out( "" ) |
@@ -125,7 +126,7 @@ class MakefileMaker: | |||
125 | self.out( 'SUMMARY_%s="%s"' % ( name, desc ) ) | 126 | self.out( 'SUMMARY_%s="%s"' % ( name, desc ) ) |
126 | self.out( 'RDEPENDS_%s="%s"' % ( name, deps ) ) | 127 | self.out( 'RDEPENDS_%s="%s"' % ( name, deps ) ) |
127 | 128 | ||
128 | line = 'FILES_%s="' % name | 129 | line = 'FILES_%s=" \\\n' % name |
129 | 130 | ||
130 | # | 131 | # |
131 | # check which directories to make in the temporary directory | 132 | # check which directories to make in the temporary directory |
@@ -140,20 +141,21 @@ class MakefileMaker: | |||
140 | # | 141 | # |
141 | 142 | ||
142 | for target in files: | 143 | for target in files: |
143 | line += "%s " % target | 144 | line += " %s \\\n" % target |
144 | 145 | ||
145 | line += '"' | 146 | line += '"' |
146 | self.out( line ) | 147 | self.out( line ) |
147 | self.out( "" ) | 148 | self.out( "" ) |
148 | 149 | ||
149 | self.out( 'SUMMARY_${PN}-modules="All Python modules"' ) | 150 | self.out( 'SUMMARY_${PN}-modules="All Python modules"' ) |
150 | line = 'RDEPENDS_${PN}-modules="' | 151 | line = 'RDEPENDS_${PN}-modules=" \\\n' |
151 | 152 | ||
152 | for name, data in sorted(self.packages.items()): | 153 | for name, data in sorted(self.packages.items()): |
153 | if name not in ['${PN}-dev', '${PN}-distutils-staticdev'] and name not in self.excluded_pkgs: | 154 | if name not in ['${PN}-dev', '${PN}-distutils-staticdev'] and name not in self.excluded_pkgs: |
154 | line += "%s " % name | 155 | line += " %s \\\n" % name |
155 | 156 | ||
156 | self.out( "%s \"" % line ) | 157 | line += '"' |
158 | self.out( line ) | ||
157 | self.out( 'ALLOW_EMPTY_${PN}-modules = "1"' ) | 159 | self.out( 'ALLOW_EMPTY_${PN}-modules = "1"' ) |
158 | 160 | ||
159 | def doEpilog( self ): | 161 | def doEpilog( self ): |