summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/package_manager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 15e56b550d..ea7866fff7 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -740,11 +740,12 @@ class RpmPM(PackageManager):
740 break 740 break
741 741
742 bb.note(' * postponing %s' % new_pkg) 742 bb.note(' * postponing %s' % new_pkg)
743 saved_dir = self.image_rootfs + self.d.expand('${sysconfdir}/rpm-postinsts/') + new_pkg 743 saved_dir = self.target_rootfs + self.d.expand('${sysconfdir}/rpm-postinsts/') + new_pkg
744
744 cmd = self.rpm_cmd + ' -q --scripts --root ' + self.target_rootfs 745 cmd = self.rpm_cmd + ' -q --scripts --root ' + self.target_rootfs
745 cmd += ' --dbpath=/var/lib/rpm ' + new_pkg 746 cmd += ' --dbpath=/var/lib/rpm ' + new_pkg
746 cmd += ' | sed -n -e "/^postinstall scriptlet (using .*):$/,/^.* scriptlet (using .*):$/ {/.*/p}"' 747 cmd += ' | sed -n -e "/^postinstall scriptlet (using .*):$/,/^.* scriptlet (using .*):$/ {/.*/p}"'
747 cmd += ' | sed -e "s/postinstall scriptlet (using \(.*\)):$/#!\1/"' 748 cmd += ' | sed -e "/postinstall scriptlet (using \(.*\)):$/d"'
748 cmd += ' -e "/^.* scriptlet (using .*):$/d" > %s' % saved_dir 749 cmd += ' -e "/^.* scriptlet (using .*):$/d" > %s' % saved_dir
749 750
750 try: 751 try: