mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 15:32:12 +02:00
useradd-staticids.bbclass: Avoid FutureWarning about split()
This avoids the following warning with Python 3.5: /usr/lib64/python3.5/re.py:203: FutureWarning: split() requires a non-empty pattern (From OE-Core rev: a7a783c30cc58008f0e070dad39d40038e0a5eb5) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
93698ac54a
commit
4c38798cae
@@ -97,7 +97,7 @@ def update_useradd_static_config(d):
|
||||
if not param:
|
||||
continue
|
||||
try:
|
||||
uaargs = parser.parse_args(re.split('''[ \t]*(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', param))
|
||||
uaargs = parser.parse_args(re.split('''[ \t]+(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', param))
|
||||
except:
|
||||
raise bb.build.FuncFailed("%s: Unable to parse arguments for USERADD_PARAM_%s: '%s'" % (d.getVar('PN', True), pkg, param))
|
||||
|
||||
@@ -231,7 +231,7 @@ def update_useradd_static_config(d):
|
||||
continue
|
||||
try:
|
||||
# If we're processing multiple lines, we could have left over values here...
|
||||
gaargs = parser.parse_args(re.split('''[ \t]*(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', param))
|
||||
gaargs = parser.parse_args(re.split('''[ \t]+(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', param))
|
||||
except:
|
||||
raise bb.build.FuncFailed("%s: Unable to parse arguments for GROUPADD_PARAM_%s: '%s'" % (d.getVar('PN', True), pkg, param))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user