Commits

Rodrigo Bistolfi committed dfd0ea4

Better format for install media label

  • Participants
  • Parent commits 3c6b1d6

Comments (0)

Files changed (1)

vinstall/backend/installmedia.py

         self.config = config
 
     def __str__(self):
-        return "%s %s [%s]" % (self.get("general", "distro"),
-                self.get("general", "version"), self.path)
+        if self.is_iso():
+            format = "%s %s - ISO on %s"
+            path = self.path.rsplit("/", 1)[0] or "/"
+        else:
+            format = "%s %s on %s"
+            path = self.path
+        return format % (self.get("general", "distro"),
+                self.get("general", "version"), path)
 
     def __getattr__(self, name):
         """Delegate in config object