]> scripts.mit.edu Git - www/ikiwiki.git/commitdiff
darcs: ensure whole darcs query manifest output is consumed
authorJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 21:49:00 +0000 (17:49 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 21:49:00 +0000 (17:49 -0400)
By a stroke of luck, after a long & full day, I happened to
remember that in the morning, I had seen someone on irc mention
that darcs query manifest doesn't like it if its full output
is not consumed.

So contrary to the usual case where bug reports sent via irc are like
messages written in sand before the new tide, this one was seen and
fixed.

(But use http://ikiwiki.info/bugs/ next time!)

IkiWiki/Plugin/darcs.pm

index c1d6661d3a503840c419be55dadff6d16fdf6d03..f17fadcb10ef5a66b5530ae6d65d41b175a186b7 100644 (file)
@@ -63,7 +63,7 @@ sub file_in_vc ($$) {
        }
        my $found=0;
        while (<DARCS_MANIFEST>) {
-               $found = 1, last if /^(\.\/)?$file$/;
+               $found = 1 if /^(\.\/)?$file$/;
        }
        close(DARCS_MANIFEST) or error("'darcs query manifest' exited " . $?);