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 Sort modules in module-info by modname, not modtype

---
src/pylorax/images.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/pylorax/images.py b/src/pylorax/images.py
index 72ccee9..ab8e7cd 100644
--- a/src/pylorax/images.py
+++ b/src/pylorax/images.py
@@ -239,8 +239,6 @@ export PS1 PATH
for modtype, fname in {"scsi": "modules.block",
"eth": "modules.networking"}.items():

- modlist[modtype] = {}
-
fname = os.path.join(dst_moddir, fname)
with open(fname, "r") as f:
for line in f:
@@ -268,15 +266,14 @@ export PS1 PATH

info = '{0}
{1}
"{2}"
'
info = info.format(modname, modtype, desc)
- modlist[modtype][modname] = info
+ modlist[modname] = info

# write the source module-info
moduleinfo = os.path.join(self.workdir, self.const.MODULEINFO)
with open(moduleinfo, "w") as f:
f.write("Version 0
")
- for modtype, modules in modlist.items():
- for modname in sorted(modules.keys()):
- f.write(modlist[modtype][modname])
+ 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)
--
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:54 PM.

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