<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jeremy Katz wrote:
<blockquote cite="mid:1188244605.29999.2.camel@localhost.localdomain"
 type="cite">
  <pre wrap="">On Tue, 2007-08-28 at 01:25 +0530, Debarshi 'Rishi' Ray wrote:
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">My initial idea was to input and use the mirror list _only_ if the
mirror list checkbox was chosen and otherwise use the baseurl. However
this does not consider the case where the .repo file looks like:
        </pre>
      </blockquote>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">Okay, this makes some sense.  Although we could just have that handled
under the covers and still let you just select between mirror url and a
baseurl.  But that would get a little weird switching between them I
guess.  I still think you're going to want to allow a radio button
between the two.  Because you can also disable the baseurl (in fact,
that's the default config).  Maybe we just make the baseurl and the
mirror url both handled like the gpg key above.
      </pre>
    </blockquote>
    <pre wrap="">Disabling the baseurl is a default config for the Fedora repositories,
and may not be so for custom distributed <a class="moz-txt-link-freetext" href="file://">file://</a> based repositories or
some ad-hoc <a class="moz-txt-link-freetext" href="http://">http://</a> or <a class="moz-txt-link-freetext" href="ftp://">ftp://</a> repository created by a developer or an
organization.

If we look at it from a higher level of abstraction what are the most
basic things needed to get a repository working? A repo id, a name and
a baseurl come to mind. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Fully agreed.  But we're wanting to use the same sort of interface for
editing as adding (because there's lots of win there).  And given
_that_, we don't want to necessarily hide what the defaults are.
Otherwise, I'd be in 100% agreement with you.  Maybe the thing to do is
to go the route you're saying, but just look and auto-expand if a mirror
list or gpg key is set.

Jeremy

  </pre>
</blockquote>
<tt>Here is my arcii art proposal to the dialog, based on the comments
on the list<br>
<br>
Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ &lt;Repo Tag&gt;
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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
]<br>
</tt><tt><br>
&gt; Advandced<br>
&nbsp;&nbsp;&nbsp; [x] GPG Check [&lt;Url to gpg key, gray out if
unchecked&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<br>
</tt><br>
<br>
The dialog can be use for both add &amp; edit of repositories.<br>
I have dumped the idea of a protocol button, it clutters the dialog to
much, a so does the file selector buttons, and they<br>
don't make much sense in multi line baseurls, where <a class="moz-txt-link-freetext" href="file://">file://</a> &amp;
<a class="moz-txt-link-freetext" href="http://">http://</a> can be mixed.<br>
<br>
if baseurl is selected the use all the lines in the multi line TextView
to create baseurl=, if mirrorlist is selected then just use the first
line.<br>
If someone want to use both at the same time (yes, it is posible :-) ),
then they have to edit the repo files directly :).<br>
<br>
Tim<br>
</body>
</html>