package_manger.py/rootfs.py: rename save_rpmpostinist with save_rpmpostinst
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 27 Jan 2014 08:22:05 +0000 (16:22 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 11:53:43 +0000 (11:53 +0000)
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>
meta/lib/oe/package_manager.py
meta/lib/oe/rootfs.py

index ea7866f..811ad09 100644 (file)
@@ -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'''
index db54e17..1f4cea6 100644 (file)
@@ -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):