This email list is read-only.  Emails sent to this list will be discarded
----------------------------------
 debian/changelog   |    5 +++--
 libs/moblin_yum.py |   24 +++++++++++++++++++++++-
 2 files changed, 26 insertions(+), 3 deletions(-)

New commits:
commit 85a0478cf0de4facb1e95f3854468f1551898376
Author: Prajwal Mohan <[EMAIL PROTECTED]>
Date:   Mon Jul 28 14:40:18 2008 -0700

    Making changes to Yum package manager


Diff in this email is a maximum of 400 lines.
diff --git a/debian/changelog b/debian/changelog
index 0ef594a..67032de 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -70,9 +70,10 @@ moblin-image-creator (0.45) UNRELEASED; urgency=low
   * Releasing 0.45 version
   * Starting new version
   * Adding Nand kernel cmd line
-  * Adding KVM and NAND buttons to GUI 
+  * Adding KVM and NAND buttons to GUI
+  * Making changes to Yum package manager 
 
- -- Prajwal Mohan <[EMAIL PROTECTED]>  Mon, 28 Jul 2008 14:01:28 -0700
+ -- Prajwal Mohan <[EMAIL PROTECTED]>  Mon, 28 Jul 2008 14:39:35 -0700
 
 moblin-image-creator (0.44) gaston; urgency=low
 
diff --git a/libs/moblin_yum.py b/libs/moblin_yum.py
index 5a0b554..f81b76b 100644
--- a/libs/moblin_yum.py
+++ b/libs/moblin_yum.py
@@ -39,7 +39,6 @@ class YumPackageManager(moblin_pkgbase.PackageManager):
 
     def installPackages(self, chroot_dir, package_list, callback = None):
         """Install the list of packages in the chroot environement"""
-        print _("yum.installPackages: Not implemented yet!!!!")
         self.__yumPreRun(chroot_dir)
         if not package_list:
             # No packages, so nothing to do
@@ -80,10 +79,16 @@ class YumPackageManager(moblin_pkgbase.PackageManager):
 
     def updateChroot(self, chroot_dir, callback = None):
         """Update the chroot environment to have the latest packages"""
+        command = "yum clean metadata"
+        print _("Running 'yum update' command: %s") % (command)
+        print _("\t in the chroot: %s") % (chroot_dir)
+        pdk_utils.execChrootCommand(chroot_dir, command, callback = callback)
+
         command = "yum -y update"
         print _("Running 'yum update' command: %s") % (command)
         print _("\t in the chroot: %s") % (chroot_dir)
         result = pdk_utils.execChrootCommand(chroot_dir, command, callback = 
callback)
+        return result
 
     def cleanPackageCache(self, chroot_dir):
         """Clean out any cached package files"""
@@ -91,6 +96,23 @@ class YumPackageManager(moblin_pkgbase.PackageManager):
         print _("Running 'yum clean' command: %s") % (command)
         print _("\t in the chroot: %s") % (chroot_dir)
         result = pdk_utils.execChrootCommand(chroot_dir, command, callback = 
callback)
+        return result
+
+    def resetPackageDB(self, chroot_dir, callback):
+        """reset rpm database to deal with case of running in IA64"""
+
+        """ due to unknown reason execChrootCommand doesn't work on wide-match 
symbol"""
+        #FIXME
+        command = "/usr/sbin/chroot %s rm -fr /var/lib/rpm/*db*" % (chroot_dir)
+        print _("Running command: %s") % (command)
+        os.system(command)
+        command = "rpm --rebuilddb"
+        print _("Running rpm db reset command: %s") % (command)
+        print _("\t in the chroot: %s") % (chroot_dir)
+        result = pdk_utils.execChrootCommand(chroot_dir, command, callback = 
callback)
+        if result != 0 :
+            print _("Error running command %s") %(command)
+        return result
 
     def mount(self, chroot_dir):
         return []
_______________________________________________
Commits mailing list
[email protected]
https://www.moblin.org/mailman/listinfo/commits

Reply via email to