Hello community, here is the log from the commit of package package-translations for openSUSE:Factory checked in at 2011-10-28 19:41:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/package-translations (Old) and /work/SRC/openSUSE:Factory/.package-translations.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "package-translations", Maintainer is "coolo@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/package-translations/package-translations.changes 2011-10-27 14:29:26.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.package-translations.new/package-translations.changes 2011-10-28 20:01:53.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Oct 28 08:53:01 UTC 2011 - coolo@suse.com + +- insert EULAs into the suse tags + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ translate_packages.pl ++++++ --- /var/tmp/diff_new_pack.7o0kpK/_old 2011-10-28 20:03:46.000000000 +0200 +++ /var/tmp/diff_new_pack.7o0kpK/_new 2011-10-28 20:03:46.000000000 +0200 @@ -26,16 +26,24 @@ setlocale(LC_MESSAGES, "en_US.UTF-8"); setlocale(LC_ALL, "en_US.UTF-8"); -textdomain("package-translations-" . $ARGV[0]); +my $lang = $ARGV[0]; +textdomain("package-translations-$lang"); my $indesc = 0; my $descr = ''; +my $pkg = ''; while ( <STDIN> ) { - if ($_ =~ m/^=Ver:/ || $_ =~ m/^#/ || $_ =~ m/^=Pkg:/) { + if ($_ =~ m/^=Ver:/ || $_ =~ m/^#/) { print $_; next; } + if ($_ =~ m/^=Pkg:\s*(\S*)\s/) { + $pkg = $1; + print $_; + next; + } + if ($_ =~ m/^=Sum:\s*(.*)\s*$/) { my $sum = $1; print "=Sum: " . gettext($sum) . "\n"; @@ -54,6 +62,16 @@ print gettext($descr) . "\n"; $descr = ''; print $_; + + if (-f "/usr/share/doc/packages/eulas/$pkg.$lang") { + print "+Eul:\n"; + open(EULA, "/usr/share/doc/packages/eulas/$pkg.$lang"); + while ( <EULA> ) { + print $_; + } + close(EULA); + print "-Eul:\n"; + } next; } -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org