<!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:1183387321.10801.17.camel@aglarond.local"
 type="cite">
  <pre wrap="">On Mon, 2007-07-02 at 15:27 +0530, Debarshi 'Rishi' Ray wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I see that the Edit->Repository menu item is not yet implemented till
Pirut 1.3.8. I am going to write one for the offline package
management tool (<a class="moz-txt-link-freetext" href="http://fedoraproject.org/wiki/DebarshiRay/rum">http://fedoraproject.org/wiki/DebarshiRay/rum</a>) I am
making for this year's Summer of Code
(<a class="moz-txt-link-freetext" href="http://fedoraproject.org/wiki/SummerOfCode/2007/DebarshiRay">http://fedoraproject.org/wiki/SummerOfCode/2007/DebarshiRay</a>).

Do you already have some plans or suggestions in mind regarding the
design and/or functionality of Edit->Repository that I can base my
work on? Otherwise I can create one which will benefit both Pirut and
my application.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
There's definitely need to flesh out and actually have the menu item in
pirut be useful.  There's already some code in various places (repoman
and system-config-repositories in yumex are standalone... I think
there's also some code in revisor).  But I'm not all that sold on the UI
with either...

I think the place to start is with writing up some use cases and then
trying to do some mockups from there before ever writing any code.

Then the tricky part is likely to be doing the config reading/writing in
a way that's not lossy.  repoman actually has a good start on some of
this, but it'd be nice to actually work towards getting that code into
yum itself so that every tool doesn't have to re-invent those bits.

Jeremy

  </pre>
</blockquote>
Sounds like a good idea, the config write routine in yum will remove
all the # comment lines and mix all the options.<br>
I fixed the mixing in system-config-repo by building a extra layer on
the yum config API, but it don't take care off the # comments.<br>
I would be a good idea to teach yum to save config files, without
losing information.<br>
<br>
Tim<br>
<br>
</body>
</html>