mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
classes/package_rpm: streamline the logic in one of the condition blocks
(From OE-Core rev: e6a8ca554509c0edf9fd36ced88165dc3caf0e87) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
eda2fe2ac0
commit
57d82f92c1
@@ -243,13 +243,11 @@ python write_specfile () {
|
||||
p = path + '/' + dir
|
||||
# All packages own the directories their files are in...
|
||||
target.append(get_attr(dir) + '%dir "' + escape_chars(p) + '"')
|
||||
else:
|
||||
elif path:
|
||||
# packages own only empty directories or explict directory.
|
||||
# This will prevent the overlapping of security permission.
|
||||
attr = get_attr(path)
|
||||
if path and not files and not dirs:
|
||||
target.append(attr + '%dir "' + escape_chars(path) + '"')
|
||||
elif path and path in dirfiles:
|
||||
if (not files and not dirs) or path in dirfiles:
|
||||
target.append(attr + '%dir "' + escape_chars(path) + '"')
|
||||
|
||||
for file in files:
|
||||
|
||||
Reference in New Issue
Block a user