Commits

Rodrigo Bistolfi committed 09c95ae

If installing from Live Cd, jump package selection

Comments (0)

Files changed (1)

vinstall/controller/mountpoints.py

         """Return next step
 
         """
-        print self.render.main_window
         from vinstall.controller import packages
+        if self.is_live():
+            return packages.LivePackageInstaller
         return packages.PackageSelection
 
     def previous(self):
         mount = (device, mountpoint, fs)
         self.config["mountpoints"].append(mount)
 
+    def is_live(self):
+        """Return True if install media is a Live CD
+        
+        """
+        install_media = self.config["install_media"]
+        version = install_media.config.get("general", "version")
+        if "LIVE" in version:
+        	return True
+        return False
+
+