<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 23-12-2013 11:27, Aline Manera
      wrote:<br>
    </div>
    <blockquote cite="mid:52B83A24.5050109@linux.vnet.ibm.com"
      type="cite">On 12/20/2013 07:45 PM, Rodrigo Trujillo wrote:
      <br>
      <blockquote type="cite">I think that is nice to support "easy
        installation" of various linux flavours, but the way that this
        feature is implemented today
        <br>
        might kill us in the future, because everything is hardcoded in
        the json's.
        <br>
        That means we will have to pay attention on each new distro
        versions and links and support the changes.
        <br>
        <br>
        <br>
      </blockquote>
      <br>
      The json files are for remote ISOs.
      <br>
      Some of them are predefined by Kimchi and others can be from other
      packages.
      <br>
      <br>
      I agree that way we need to confirm the links in json files are
      correct but how automate that?
      <br>
    </blockquote>
    <br>
    I also agree with that. But I don't see an easy way that would work
    for every distro. My suggestion would be to implement some algorithm
    to fetch, let's say, the two latest release images and display the
    remote ISOs to download. For example, for Ubuntu, we could work on
    the base URL
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a class="moz-txt-link-freetext" href="http://mirror.anl.gov/pub/ubuntu-iso/CDs-Ubuntu/">http://mirror.anl.gov/pub/ubuntu-iso/CDs-Ubuntu/</a>, look for version
    directories (\d{2}.\d{2}), and then the ISO files
    (ubuntu-{version}-desktop-amd64.iso). That would update the Kimchi
    remote templates suggestions automatically as soon as the distro
    releases a new image. But that could break easily if the distro's
    host server changes something regarding the image URLs.<br>
    <br>
    This patch follows the current mechanism used by the other distros.<br>
  </body>
</html>