Hello community,
here is the log from the commit of package linuxrc-devtools for
openSUSE:Factory checked in at 2019-09-10 00:01:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/linuxrc-devtools (Old)
and /work/SRC/openSUSE:Factory/.linuxrc-devtools.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "linuxrc-devtools"
Tue Sep 10 00:01:50 2019 rev:10 rq:729468 version:0.17
Changes:
--------
--- /work/SRC/openSUSE:Factory/linuxrc-devtools/linuxrc-devtools.changes
2019-06-06 18:19:02.572655798 +0200
+++
/work/SRC/openSUSE:Factory/.linuxrc-devtools.new.7948/linuxrc-devtools.changes
2019-09-10 00:01:54.929213828 +0200
@@ -1,0 +2,7 @@
+Mon Sep 9 13:11:58 UTC 2019 - [email protected]
+
+- merge gh#openSUSE/linuxrc-devtools#23
+- auto-add a bugzilla number to every Weblate commit (bsc#1149754)
+- 0.17
+
+--------------------------------------------------------------------
Old:
----
linuxrc-devtools-0.16.tar.xz
New:
----
linuxrc-devtools-0.17.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ linuxrc-devtools.spec ++++++
--- /var/tmp/diff_new_pack.FFEA9E/_old 2019-09-10 00:01:55.761213773 +0200
+++ /var/tmp/diff_new_pack.FFEA9E/_new 2019-09-10 00:01:55.765213772 +0200
@@ -17,7 +17,7 @@
Name: linuxrc-devtools
-Version: 0.16
+Version: 0.17
Release: 0
Source: %{name}-%{version}.tar.xz
++++++ linuxrc-devtools-0.16.tar.xz -> linuxrc-devtools-0.17.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/linuxrc-devtools-0.16/VERSION
new/linuxrc-devtools-0.17/VERSION
--- old/linuxrc-devtools-0.16/VERSION 2019-06-06 10:26:54.000000000 +0200
+++ new/linuxrc-devtools-0.17/VERSION 2019-09-09 15:11:58.000000000 +0200
@@ -1 +1 @@
-0.16
+0.17
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/linuxrc-devtools-0.16/changelog
new/linuxrc-devtools-0.17/changelog
--- old/linuxrc-devtools-0.16/changelog 2019-06-06 10:26:54.000000000 +0200
+++ new/linuxrc-devtools-0.17/changelog 2019-09-09 15:11:58.000000000 +0200
@@ -1,3 +1,7 @@
+2019-09-09: 0.17
+ - merge gh#openSUSE/linuxrc-devtools#23
+ - auto-add a bugzilla number to every Weblate commit (bsc#1149754)
+
2019-06-06: 0.16
- merge gh#openSUSE/linuxrc-devtools#22
- fix handling of spec file with several 'Name' definitions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/linuxrc-devtools-0.16/git2log
new/linuxrc-devtools-0.17/git2log
--- old/linuxrc-devtools-0.16/git2log 2019-06-06 10:26:54.000000000 +0200
+++ new/linuxrc-devtools-0.17/git2log 2019-09-09 15:11:58.000000000 +0200
@@ -33,6 +33,7 @@
sub format_all_logs;
sub fix_dates;
sub add_line_breaks;
+sub add_bugzilla_to_weblate;
sub format_date_obs;
sub format_date_iso;
sub raw_date_to_s;
@@ -62,6 +63,7 @@
my $opt_join_author = 1; # join consecutive commit messages as
long as they are by the same author
my $opt_keep_date = 1; # don't join consecutive commit
messages if they have different time stamps
my $opt_default_email = '[email protected]'; # default email
to use in changelog
+my $opt_weblate = 'bsc#1149754'; # bugzilla ref to use for Weblate
commits
GetOptions(
'help' => sub { usage 0 },
@@ -78,6 +80,7 @@
'keep-date!' => \$opt_keep_date,
'log|changelog' => \$opt_log,
'default-email=s' => \$opt_default_email,
+ 'weblate=s' => \$opt_weblate,
) || usage 1;
# ensure we are used correctly
@@ -180,6 +183,7 @@
--no-keep-date Join consecutive commits even if dates differ.
--default-email Use this email in changelog entries if no other suitable
email could be
determined (default: opensuse-packaging\@opensuse.org).
+ --weblate STRING Add this STRING to every auto-generated Weblate commit.
--help Print this help text.
usage
@@ -841,6 +845,16 @@
}
# step 10
+ # - add bugzilla reference to Weblate commits
+
+ for my $commit (@$commits) {
+ next unless $commit->{formatted};
+ for (@{$commit->{formatted}}) {
+ $_ = add_bugzilla_to_weblate $_;
+ }
+ }
+
+ # step 11
# - add line breaks
for my $commit (@$commits) {
@@ -850,7 +864,7 @@
}
}
- # step 11
+ # step 12
# - generate final log message
#
# note: non-(open)suse email addresses are replaced by $opt_default_email
@@ -936,6 +950,27 @@
}
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# new_text = add_bugzilla_to_weblate(text)
+#
+# Add bugzilla number to an auto-generated Weblate commit.
+# - text: some text
+# - new_text: same text, "($opt_weblate)" added
+#
+sub add_bugzilla_to_weblate
+{
+ my $text = @_[0];
+
+ if($opt_weblate ne "") {
+ if($text =~ /Translated using Weblate/ && $text !~ /\($opt_weblate\)/) {
+ $text .= " ($opt_weblate)";
+ }
+ }
+
+ return $text;
+}
+
+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# seconds = raw_date_to_s(git_date)
#