This email list is read-only. Emails sent to this list will be discarded
----------------------------------
debian/changelog | 5 +++--
libs/Project.py | 19 +++++++++++++++++++
2 files changed, 22 insertions(+), 2 deletions(-)
New commits:
commit f1a418b31c9a9a9c325c532b4e9ce62e40dc8585
Author: Prajwal Mohan <[EMAIL PROTECTED]>
Date: Mon Jul 28 16:29:05 2008 -0700
* Making changes to Yum package manager
* Adding functions to get/set NAND kernel cmd line
Diff in this email is a maximum of 400 lines.
diff --git a/debian/changelog b/debian/changelog
index 67032de..7994cef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -71,9 +71,10 @@ moblin-image-creator (0.45) UNRELEASED; urgency=low
* Starting new version
* Adding Nand kernel cmd line
* Adding KVM and NAND buttons to GUI
- * Making changes to Yum package manager
+ * Making changes to Yum package manager
+ * Adding functions to get/set NAND kernel cmd line
- -- Prajwal Mohan <[EMAIL PROTECTED]> Mon, 28 Jul 2008 14:39:35 -0700
+ -- Prajwal Mohan <[EMAIL PROTECTED]> Mon, 28 Jul 2008 16:28:42 -0700
moblin-image-creator (0.44) gaston; urgency=low
diff --git a/libs/Project.py b/libs/Project.py
index ba1ece7..05d0b6f 100755
--- a/libs/Project.py
+++ b/libs/Project.py
@@ -232,6 +232,7 @@ class Project(FileSystem):
self.set_target_usb_kernel_cmdline(name,
self.platform.usb_kernel_cmdline)
self.set_target_hd_kernel_cmdline(name,
self.platform.hd_kernel_cmdline)
self.set_target_cd_kernel_cmdline(name,
self.platform.cd_kernel_cmdline)
+ self.set_target_nand_kernel_cmdline(name,
self.platform.nand_kernel_cmdline)
return self.targets[name]
def get_target_usb_kernel_cmdline(self, name):
@@ -267,6 +268,17 @@ class Project(FileSystem):
cmdline.close()
return cd_kernel_cmdline.strip()
+ def get_target_nand_kernel_cmdline(self, name):
+ if not name:
+ raise ValueError(_("Target name was not specified"))
+ cmdline = open(os.path.join(self.targets[name].config_path,
'nand_kernel_cmdline'), 'r')
+ nand_kernel_cmdline = ''
+ for line in cmdline:
+ if not re.search(r'^\s*#',line):
+ nand_kernel_cmdline += line + ' '
+ cmdline.close()
+ return nand_kernel_cmdline.strip()
+
def set_target_usb_kernel_cmdline(self, name, str):
if not name:
raise ValueError(_("Target name was not specified"))
@@ -288,6 +300,13 @@ class Project(FileSystem):
print >> cmdline, str
cmdline.close()
+ def set_target_nand_kernel_cmdline(self, name, str):
+ if not name:
+ raise ValueError(_("Target name was not specified"))
+ cmdline = open(os.path.join(self.targets[name].config_path,
'nand_kernel_cmdline'), 'w')
+ print >> cmdline, str
+ cmdline.close()
+
def delete_target(self, name, do_pop=True, callback = None):
target = self.targets[name]
self.umountTarget(target)
_______________________________________________
Commits mailing list
[email protected]
https://www.moblin.org/mailman/listinfo/commits