[Fedora-livecd-list] imgcreate/live.py

Jeremy Katz katzj at fedoraproject.org
Mon Jan 12 16:38:41 UTC 2009


 imgcreate/live.py |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 4a670c764a1a949c866539b8a6a60e2729747acb
Author: Jeremy Katz <katzj at redhat.com>
Date:   Mon Jan 12 11:38:29 2009 -0500

    Fix namespacing (#479550)

diff --git a/imgcreate/live.py b/imgcreate/live.py
index f7e35db..031b136 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -70,7 +70,7 @@ class LiveImageCreatorBase(LoopImageCreator):
         self.__modules = ["=ata", "sym53c8xx", "aic7xxx", "=usb", "=firewire", "=mmc", "=pcmcia", "mptsas", "udf"]
         self.__modules.extend(kickstart.get_modules(self.ks))
 
-        self.__isofstype = "iso9660"
+        self._isofstype = "iso9660"
 
     #
     # Hooks for subclasses
@@ -250,7 +250,7 @@ class LiveImageCreatorBase(LoopImageCreator):
                       {'file': os.path.join(path, name),
                       'size': os.stat(os.path.join(path, name)).st_size,
                       'fourgib': 4*1024*1024*1024})
-              self.__isofstype = "udf"
+              self._isofstype = "udf"
               break
 
         args.append(isodir)
@@ -445,7 +445,7 @@ menu hiddenrow 5
 
             cfg += self.__get_image_stanza(is_xen,
                                            fslabel = self.fslabel,
-                                           isofstype = self.__isofstype,
+                                           isofstype = self._isofstype,
                                            liveargs = kernel_options,
                                            long = long,
                                            short = "linux" + index,
@@ -458,7 +458,7 @@ menu hiddenrow 5
             if checkisomd5:
                 cfg += self.__get_image_stanza(is_xen,
                                                fslabel = self.fslabel,
-                                               isofstype = self.__isofstype,
+                                               isofstype = self._isofstype,
                                                liveargs = kernel_options,
                                                long = "Verify and " + long,
                                                short = "check" + index,
@@ -552,13 +552,13 @@ hiddenmenu
             if os.path.exists("%s/EFI/boot/xen%d.gz" %(isodir, index)):
                 continue
             cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
-                                               isofstype = self.__isofstype,
+                                               isofstype = self._isofstype,
                                                liveargs = kernel_options,
                                                long = name,
                                                extra = "", index = index)
             if checkisomd5:
                 cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
-                                                   isofstype = self.__isofstype,
+                                                   isofstype = self._isofstype,
                                                    liveargs = kernel_options,
                                                    long = "Verify and Boot " + name,
                                                    extra = "check",
@@ -677,7 +677,7 @@ image=/ppc/ppc%(bit)s/vmlinuz
         kernel_options = self._get_kernel_options()
 
         cfg += self.__get_image_stanza(fslabel = self.fslabel,
-                                       isofstype = self.__isofstype,
+                                       isofstype = self._isofstype,
                                        short = "linux",
                                        long = "Run from image",
                                        extra = "",
@@ -686,7 +686,7 @@ image=/ppc/ppc%(bit)s/vmlinuz
 
         if self._has_checkisomd5():
             cfg += self.__get_image_stanza(fslabel = self.fslabel,
-                                           isofstype = self.__isofstype,
+                                           isofstype = self._isofstype,
                                            short = "check",
                                            long = "Verify and run from image",
                                            extra = "check",





More information about the livecd mailing list