I've been hacking on the code yesterday, and it seems I am hitting some sort of a bug. Basically, what happens is that the plugin starts, does its work, exits, yum tries installing the new rpm, it goes through the "updating" progress bar, then hangs before doing "cleanup" part?!
<br><br>The thing is, after the hang, all rpm based tools "rpm -q" "rpm -e" "rpm -i" anything, would just sit there stuck! Stracing this, and it is stopped at<br>futex(0xb7988c3c, FUTEX_WAIT, 1, NULL <unfinished ...>
<br>I did find some bug reports about that<br><a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=145021">https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=145021</a><br><a href="http://lists.centos.org/pipermail/centos-devel/2005-June/001890.html">
http://lists.centos.org/pipermail/centos-devel/2005-June/001890.html</a><br><br>But it should be rare! In my case, this happens everytime. And I have to reboot to clear the lock! I'm probably not releasing the rpmDB lock somehow, anyone faced something similar before ? This is "yum -d 10" output
<br><br>Running Transaction Test<br>Member: ImageMagick.i386 0-6.2.8.0-3.fc6.1 - u<br>Adding Package ImageMagick - 6.2.8.0-3.fc6.1.i386 in mode u<br>Finished Transaction Test<br>Transaction Test Succeeded<br>Member: ImageMagick.i386
 0-6.2.8.0-3.fc6.1 - u<br>Adding Package ImageMagick - 6.2.8.0-3.fc6.1.i386 in mode u<br>Running Transaction<br>  Updating  : ImageMagick                  ######################### [1/2]<br><br><br><div><span class="gmail_quote">
On 1/18/07, <b class="gmail_sendername">seth vidal</b> <<a href="mailto:skvidal@linux.duke.edu">skvidal@linux.duke.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 2007-01-18 at 09:39 -0800, Toshio Kuratomi wrote:<br>> On Thu, 2007-01-18 at 09:53 +0200, Ahmed Kamal wrote:<br>> > Appreciating everyone's help, it seems others have attempted this<br>> > before. Anyway, let's put this through the test of time :) Also, I
<br>> > totally agree with keeping drpms only if they meet certain criteria,<br>> > i.e. provide >50% savings or similar.<br>> ><br>> > Right now, I am trying to figure out how/where the server side will
<br>> > store the drpm metadata. Other.xml.gz seems like a good place, or<br>> > maybe a new drpm.xml.gz, but I am not sure how such file should be<br>> > written.<br>><br>> I seem to recall that primary.xml.gz
 can list arbitrary xml files which<br>> the depsolvers will ignore if they don't need them but Seth would know<br>> better.<br><br>repomd.xml can list additional files, not primary - but the result is<br>the same.
<br><br>You'd want to tie knowledge of drpms into createrepo.<br><br><br>> Are you writing this from scratch?  If it's using the yum plugin that<br>> already exists it might be expecting the metadata in a specific format
<br>> already.<br><br>plugins can do whatever, pretty much, when it comes to what kind of<br>metadata they want to deal with.<br><br>-sv<br><br><br></blockquote></div><br>