mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 14:02:21 +02:00
lib/oe/package_manager.py: fix invoking rpm save_rpmpostinist failed
- Use self.target_rootfs instead of self.image_rootfs as saved dir; - Remove redundant comment line; (From OE-Core rev: 41d6edab676277afbcaa6cf41cd64a5663f09dc7) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4df92c634e
commit
9c71ee080d
@@ -740,11 +740,12 @@ class RpmPM(PackageManager):
|
||||
break
|
||||
|
||||
bb.note(' * postponing %s' % new_pkg)
|
||||
saved_dir = self.image_rootfs + self.d.expand('${sysconfdir}/rpm-postinsts/') + new_pkg
|
||||
saved_dir = self.target_rootfs + self.d.expand('${sysconfdir}/rpm-postinsts/') + new_pkg
|
||||
|
||||
cmd = self.rpm_cmd + ' -q --scripts --root ' + self.target_rootfs
|
||||
cmd += ' --dbpath=/var/lib/rpm ' + new_pkg
|
||||
cmd += ' | sed -n -e "/^postinstall scriptlet (using .*):$/,/^.* scriptlet (using .*):$/ {/.*/p}"'
|
||||
cmd += ' | sed -e "s/postinstall scriptlet (using \(.*\)):$/#!\1/"'
|
||||
cmd += ' | sed -e "/postinstall scriptlet (using \(.*\)):$/d"'
|
||||
cmd += ' -e "/^.* scriptlet (using .*):$/d" > %s' % saved_dir
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user