FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu Development

 
 
LinkBack Thread Tools
 
Old 03-30-2010, 01:05 PM
Martin Gracik
 
Default Don't run modlist on module-info

Running modlist is not needed anymore, because the module-info
we create does not contain any modules, that are not scsi or eth,
so modlist does not make any changes to it.
---
src/pylorax/images.py | 18 ++++--------------
1 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/src/pylorax/images.py b/src/pylorax/images.py
index 38921a1..61011d9 100644
--- a/src/pylorax/images.py
+++ b/src/pylorax/images.py
@@ -268,25 +268,15 @@ export PS1 PATH
info = info.format(modname, modtype, desc)
modlist[modname] = info

- # write the source module-info
- moduleinfo = os.path.join(self.workdir, self.const.MODULEINFO)
+ # write the module-info
+ moduleinfo = os.path.join(os.path.dirname(dst_moddir),
+ self.const.MODULEINFO)
+
with open(moduleinfo, "w") as f:
f.write("Version 0
")
for modname in sorted(modlist.keys()):
f.write(modlist[modname])

- # create the final module-info
- dst = os.path.join(os.path.dirname(dst_moddir), self.const.MODULEINFO)
- modlist = os.path.join(self.srctree, self.const.MODLIST)
- cmd = "{0} --modinfo-file {1} --ignore-missing --modinfo {2} > {3}"
- cmd = cmd.format(modlist, moduleinfo, " ".join(list(modules)), dst)
- err, stdout = commands.getstatusoutput(cmd)
- if err:
- self.perror(stdout)
-
- # remove the source module-info
- #os.unlink(moduleinfo)
-
# compress modules
for root, dirs, files in os.walk(dst_moddir):
for file in filter(lambda f: f.endswith(".ko"), files):
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org