Good,the method you give is simple.I'll test later.My repo table in sql now is following,Did you can tell me what's mean about state=3 ? and state=1 ,and state=2 ?<br><br>Thank you very much ! I have draw a koji illustrative diagram , can you give me some advices?<br>
<br><a href="http://workplace.turbolinux.com.cn/attachments/120/koji%E5%8E%9F%E7%90%86%E5%9B%BE.png">http://workplace.turbolinux.com.cn/attachments/120/koji%E5%8E%9F%E7%90%86%E5%9B%BE.png</a><strong></strong><br><br>I've write many docs about install koji server and use koji,all is chinese. Can I put it on koji wiki ? <br>
<br><a href="https://fedoraproject.org/wiki/Talk:Koji">https://fedoraproject.org/wiki/Talk:Koji</a> <br><br>----------------------------------------------------<br>koji=> SELECT * from repo;<br> id | create_event | tag_id | state <br>
----+--------------+--------+-------<br>  5 |         3848 |      2 |     3<br>  6 |         3849 |      2 |     3<br>  8 |         3860 |      1 |     3<br>  7 |         3857 |      2 |     3<br>  9 |         3861 |      2 |     3<br>
 10 |         3883 |      2 |     3<br> 11 |         3899 |      2 |     3<br> 12 |         3901 |      2 |     3<br> 13 |         3982 |      2 |     3<br> 14 |         4021 |      2 |     3<br> 15 |         4044 |      2 |     3<br>
 16 |         4073 |      2 |     3<br> 17 |         4117 |      2 |     3<br> 18 |         4151 |      2 |     3<br> 19 |         4160 |      2 |     3<br> 20 |         4162 |      2 |     3<br> 21 |         4189 |      2 |     3<br>
 22 |         4200 |      2 |     3<br> 23 |         4305 |      2 |     3<br> 24 |         4382 |      2 |     3<br> 25 |         4431 |      2 |     3<br> 27 |         4455 |      4 |     3<br> 28 |         4457 |      4 |     3<br>
 29 |         4463 |      4 |     3<br> 30 |         4494 |      4 |     3<br> 31 |         4509 |      4 |     3<br> 32 |         4511 |      4 |     3<br> 33 |         4521 |      4 |     3<br> 34 |         4531 |      4 |     3<br>
 40 |         7335 |      5 |     2<br> 41 |         7348 |      3 |     2<br> 42 |         7349 |      5 |     2<br> 35 |         4540 |      4 |     3<br> 43 |         7350 |      6 |     2<br> 45 |         7356 |      6 |     2<br>
 46 |         7369 |      6 |     2<br> 44 |         7355 |      4 |     2<br> 47 |         7372 |      6 |     2<br> 48 |         7373 |      4 |     2<br> 49 |         7376 |      6 |     2<br> 52 |         7392 |      6 |     2<br>
 56 |         7401 |      6 |     2<br> 50 |         7379 |      4 |     2<br> 51 |         7386 |      2 |     1<br> 26 |         4441 |      2 |     3<br> 53 |         7394 |      6 |     2<br> 54 |         7396 |      6 |     2<br>
 57 |         7405 |      6 |     2<br> 59 |         7424 |      4 |     1<br> 55 |         7400 |      6 |     2<br> 36 |         7290 |      6 |     3<br> 37 |         7292 |      6 |     3<br> 38 |         7318 |      6 |     3<br>
 39 |         7323 |      6 |     3<br> 58 |         7410 |      6 |     2<br> 61 |         7443 |      6 |     1<br> 60 |         7441 |      6 |     2<br>(57 rows)<br><br>================================<br><br><div class="gmail_quote">
2009/6/4 Mike McLean <span dir="ltr"><<a href="mailto:mikem@redhat.com">mikem@redhat.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">À wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've solv this probole. the /usr/sbin/kojid have following code:<br>
----------------------------------<br>
2584                 #cmd.append('--update')<br>
2585                 #if options.createrepo_skip_stat:<br>
2586                 #    cmd.append('--skip-stat')<br>
==============================<br>
<br>
I commented it , so the createrepo run as follow (see createrepo.log):<br>
</blockquote>
<br></div>
It seems a little silly to comment out code that can be disabled with a configuration option (createrepo_skip_stat). Of course, there is no option to disable the --update.<br>
<br>
When I need to force the system to regenerate repos from scratch I just expire them in the db. This works because kojid will only recycle repodata from a repo in the READY state. Anyway, to expire all current repos, I'd use this sql command:<br>

- update repo set state = 2 where state in (0, 1);<br>
You'll also need to cancel any newRepo tasks that were running beforehand.<br><font color="#888888">
<br>
--<br>
Fedora-buildsys-list mailing list<br>
<a href="mailto:Fedora-buildsys-list@redhat.com" target="_blank">Fedora-buildsys-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-buildsys-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-buildsys-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>À<br>msn  <a href="mailto:lijian.gnu@gmail.com">lijian.gnu@gmail.com</a><br><br>