package_manger.py/rootfs.py: rename save_rpmpostinist with save_rpmpostinst
The tweak made the code looks better. (From OE-Core rev: 61981755b4738ccc49be0e790de828f4166ef0e8) 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:
parent
9d3c187b1a
commit
c8f41d7e48
|
@ -730,7 +730,7 @@ class RpmPM(PackageManager):
|
|||
|
||||
return
|
||||
|
||||
def save_rpmpostinist(self, pkg):
|
||||
def save_rpmpostinst(self, pkg):
|
||||
mlibs = self.d.getVar('MULTILIB_GLOBAL_VARIANTS').split()
|
||||
new_pkg = pkg
|
||||
# Remove any multilib prefix from the package name
|
||||
|
@ -755,7 +755,7 @@ class RpmPM(PackageManager):
|
|||
os.chmod(saved_dir, 0755)
|
||||
self._unlock_rpm_db()
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.fatal("Invoke save_rpmpostinist failed. Command %s "
|
||||
bb.fatal("Invoke save_rpmpostinst failed. Command %s "
|
||||
"returned %d" % (cmd, e.returncode))
|
||||
|
||||
'''Write common configuration for target usage'''
|
||||
|
|
|
@ -378,7 +378,7 @@ class RpmRootfs(Rootfs):
|
|||
|
||||
# Save the package postinstalls in /etc/rpm-postinsts
|
||||
for pkg in registered_pkgs.split():
|
||||
self.pm.save_rpmpostinist(pkg)
|
||||
self.pm.save_rpmpostinst(pkg)
|
||||
|
||||
|
||||
class DpkgRootfs(Rootfs):
|
||||
|
|
Loading…
Reference in New Issue