diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-14 21:13:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 10:23:23 +0000 |
commit | 3c59b1bf93adb0b9f723bda1d8702c8720733677 (patch) | |
tree | d1939643e2d02f0ce2e9ef33e235cd23cd5000d3 /meta/classes/package_rpm.bbclass | |
parent | c0f2890c01882e9ea14e781c044f3a84f75bd0fc (diff) | |
download | poky-3c59b1bf93adb0b9f723bda1d8702c8720733677.tar.gz |
meta: remove True option to getVarFlag calls
getVarFlag() now defaults to expanding by default, thus remove the
True option from getVarFlag() calls with a regex search and
replace.
Search made with the following regex:
getVarFlag ?\(( ?[^,()]*, ?[^,()]*), True\)
(From OE-Core rev: 2dea9e490a98377010b3d4118d054814c317a735)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 722c62877a..638cc1b488 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -86,14 +86,14 @@ python write_specfile () { | |||
86 | 86 | ||
87 | # append information for logs and patches to %prep | 87 | # append information for logs and patches to %prep |
88 | def add_prep(d,spec_files_bottom): | 88 | def add_prep(d,spec_files_bottom): |
89 | if d.getVarFlag('ARCHIVER_MODE', 'srpm', True) == '1' and bb.data.inherits_class('archiver', d): | 89 | if d.getVarFlag('ARCHIVER_MODE', 'srpm') == '1' and bb.data.inherits_class('archiver', d): |
90 | spec_files_bottom.append('%%prep -n %s' % d.getVar('PN') ) | 90 | spec_files_bottom.append('%%prep -n %s' % d.getVar('PN') ) |
91 | spec_files_bottom.append('%s' % "echo \"include logs and patches, Please check them in SOURCES\"") | 91 | spec_files_bottom.append('%s' % "echo \"include logs and patches, Please check them in SOURCES\"") |
92 | spec_files_bottom.append('') | 92 | spec_files_bottom.append('') |
93 | 93 | ||
94 | # append the name of tarball to key word 'SOURCE' in xxx.spec. | 94 | # append the name of tarball to key word 'SOURCE' in xxx.spec. |
95 | def tail_source(d): | 95 | def tail_source(d): |
96 | if d.getVarFlag('ARCHIVER_MODE', 'srpm', True) == '1' and bb.data.inherits_class('archiver', d): | 96 | if d.getVarFlag('ARCHIVER_MODE', 'srpm') == '1' and bb.data.inherits_class('archiver', d): |
97 | ar_outdir = d.getVar('ARCHIVER_OUTDIR') | 97 | ar_outdir = d.getVar('ARCHIVER_OUTDIR') |
98 | if not os.path.exists(ar_outdir): | 98 | if not os.path.exists(ar_outdir): |
99 | return | 99 | return |
@@ -720,7 +720,7 @@ python do_package_rpm () { | |||
720 | cmd = cmd + " --define 'debug_package %{nil}'" | 720 | cmd = cmd + " --define 'debug_package %{nil}'" |
721 | cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'" | 721 | cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'" |
722 | cmd = cmd + " --define '_tmppath " + workdir + "'" | 722 | cmd = cmd + " --define '_tmppath " + workdir + "'" |
723 | if d.getVarFlag('ARCHIVER_MODE', 'srpm', True) == '1' and bb.data.inherits_class('archiver', d): | 723 | if d.getVarFlag('ARCHIVER_MODE', 'srpm') == '1' and bb.data.inherits_class('archiver', d): |
724 | cmd = cmd + " --define '_sourcedir " + d.getVar('ARCHIVER_OUTDIR') + "'" | 724 | cmd = cmd + " --define '_sourcedir " + d.getVar('ARCHIVER_OUTDIR') + "'" |
725 | cmdsrpm = cmd + " --define '_srcrpmdir " + d.getVar('ARCHIVER_OUTDIR') + "'" | 725 | cmdsrpm = cmd + " --define '_srcrpmdir " + d.getVar('ARCHIVER_OUTDIR') + "'" |
726 | cmdsrpm = cmdsrpm + " -bs " + outspecfile | 726 | cmdsrpm = cmdsrpm + " -bs " + outspecfile |