[Pkg-libvirt-commits] [libguestfs] 03/59: builder: output translated notes also in --notes
Hilko Bengen
bengen at moszumanska.debian.org
Thu Mar 20 23:05:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 6379c85d1f2bbf0e1c7e8165ddeda8efa18f8344
Author: Pino Toscano <ptoscano at redhat.com>
Date: Tue Mar 11 14:25:39 2014 +0100
builder: output translated notes also in --notes
---
builder/builder.ml | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/builder/builder.ml b/builder/builder.ml
index 1800f2d..274edfe 100644
--- a/builder/builder.ml
+++ b/builder/builder.ml
@@ -215,11 +215,12 @@ let main () =
(match mode with
| `Notes -> (* --notes *)
- (match entry with
- | { Index_parser.notes = ("", notes) :: _ } ->
- print_endline notes;
- | { Index_parser.notes = _ :: _ }
- | { Index_parser.notes = [] } ->
+ let notes =
+ Languages.find_notes (Languages.languages ()) entry.Index_parser.notes in
+ (match notes with
+ | notes :: _ ->
+ print_endline notes
+ | [] ->
printf (f_"There are no notes for %s\n") arg
);
exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list