Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package suseconnect-ng for openSUSE:Factory 
checked in at 2023-06-17 22:19:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suseconnect-ng (Old)
 and      /work/SRC/openSUSE:Factory/.suseconnect-ng.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "suseconnect-ng"

Sat Jun 17 22:19:42 2023 rev:19 rq:1093063 version:1.1.0~git2.f42b4b2a060e

Changes:
--------
--- /work/SRC/openSUSE:Factory/suseconnect-ng/suseconnect-ng.changes    
2023-03-25 18:55:20.834661065 +0100
+++ /work/SRC/openSUSE:Factory/.suseconnect-ng.new.15902/suseconnect-ng.changes 
2023-06-17 22:19:44.799333653 +0200
@@ -1,0 +2,6 @@
+Wed Jun 07 06:11:07 UTC 2023 - msab...@suse.com
+
+- Update to version 1.1.0~git2.f42b4b2a060e:
+  * Keep keepalive timer states when replacing SUSEConnect (bsc#1211588)
+
+-------------------------------------------------------------------

Old:
----
  connect-ng-1.1.0~git0.e3c41e60892e.tar.xz

New:
----
  connect-ng-1.1.0~git2.f42b4b2a060e.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ suseconnect-ng.spec ++++++
--- /var/tmp/diff_new_pack.xhFxLu/_old  2023-06-17 22:19:46.975346732 +0200
+++ /var/tmp/diff_new_pack.xhFxLu/_new  2023-06-17 22:19:46.979346756 +0200
@@ -23,7 +23,7 @@
 %bcond_with hwinfo
 
 Name:           suseconnect-ng
-Version:        1.1.0~git0.e3c41e60892e
+Version:        1.1.0~git2.f42b4b2a060e
 Release:        0
 URL:            https://github.com/SUSE/connect-ng
 Summary:        Utility to register a system with the SUSE Customer Center
@@ -187,6 +187,13 @@
 EOF
 fi
 
+# If the keepalive timer exists on package install (not upgrade), then we are 
replacing SUSEConnect.
+# Record the enabled and active statuses so they can be restored in %posttrans.
+if [ "$1" -eq 1 ]; then
+  /usr/bin/systemctl is-enabled suseconnect-keepalive.timer >/dev/null 2>&1 && 
touch /run/suseconnect-keepalive.timer.is-enabled || :
+  /usr/bin/systemctl is-active suseconnect-keepalive.timer >/dev/null 2>&1 && 
touch /run/suseconnect-keepalive.timer.is-active || :
+fi
+
 %post
 %service_add_post suseconnect-keepalive.service suseconnect-keepalive.timer
 
@@ -196,6 +203,16 @@
 %postun
 %service_del_postun suseconnect-keepalive.service suseconnect-keepalive.timer
 
+%posttrans
+if [ -e /run/suseconnect-keepalive.timer.is-enabled ]; then
+   /usr/bin/systemctl enable suseconnect-keepalive.timer >/dev/null 2>&1 || :
+   rm /run/suseconnect-keepalive.timer.is-enabled ||:
+fi
+if [ -e /run/suseconnect-keepalive.timer.is-active ]; then
+  /usr/bin/systemctl start suseconnect-keepalive.timer >/dev/null 2>&1 || :
+  rm /run/suseconnect-keepalive.timer.is-active ||:
+fi
+
 %check
 %gotest -v %import_path/internal/connect %{?test_hwinfo_args}
 %gotest -v %import_path/suseconnect

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.xhFxLu/_old  2023-06-17 22:19:47.027347045 +0200
+++ /var/tmp/diff_new_pack.xhFxLu/_new  2023-06-17 22:19:47.031347068 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/SUSE/connect-ng.git</param>
-              <param 
name="changesrevision">472bdddd7894f8ddbf002143d472b5052a84d633</param></service></servicedata>
+              <param 
name="changesrevision">f42b4b2a060e4235acf8f6b9e236abd12f088b98</param></service></servicedata>
 (No newline at EOF)
 

++++++ connect-ng-1.1.0~git0.e3c41e60892e.tar.xz -> 
connect-ng-1.1.0~git2.f42b4b2a060e.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/connect-ng-1.1.0~git0.e3c41e60892e/.gitignore 
new/connect-ng-1.1.0~git2.f42b4b2a060e/.gitignore
--- old/connect-ng-1.1.0~git0.e3c41e60892e/.gitignore   1970-01-01 
01:00:00.000000000 +0100
+++ new/connect-ng-1.1.0~git2.f42b4b2a060e/.gitignore   2023-06-05 
16:34:47.000000000 +0200
@@ -0,0 +1,3 @@
+out
+internal/connect/version.txt
+connect-ruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/connect-ng-1.1.0~git0.e3c41e60892e/suseconnect-ng.spec 
new/connect-ng-1.1.0~git2.f42b4b2a060e/suseconnect-ng.spec
--- old/connect-ng-1.1.0~git0.e3c41e60892e/suseconnect-ng.spec  2023-03-17 
11:32:31.000000000 +0100
+++ new/connect-ng-1.1.0~git2.f42b4b2a060e/suseconnect-ng.spec  2023-06-05 
16:34:47.000000000 +0200
@@ -185,6 +185,13 @@
 EOF
 fi
 
+# If the keepalive timer exists on package install (not upgrade), then we are 
replacing SUSEConnect.
+# Record the enabled and active statuses so they can be restored in %posttrans.
+if [ "$1" -eq 1 ]; then
+  /usr/bin/systemctl is-enabled suseconnect-keepalive.timer >/dev/null 2>&1 && 
touch /run/suseconnect-keepalive.timer.is-enabled || :
+  /usr/bin/systemctl is-active suseconnect-keepalive.timer >/dev/null 2>&1 && 
touch /run/suseconnect-keepalive.timer.is-active || :
+fi
+
 %post
 %service_add_post suseconnect-keepalive.service suseconnect-keepalive.timer
 
@@ -194,6 +201,16 @@
 %postun
 %service_del_postun suseconnect-keepalive.service suseconnect-keepalive.timer
 
+%posttrans
+if [ -e /run/suseconnect-keepalive.timer.is-enabled ]; then
+   /usr/bin/systemctl enable suseconnect-keepalive.timer >/dev/null 2>&1 || :
+   rm /run/suseconnect-keepalive.timer.is-enabled ||:
+fi
+if [ -e /run/suseconnect-keepalive.timer.is-active ]; then
+  /usr/bin/systemctl start suseconnect-keepalive.timer >/dev/null 2>&1 || :
+  rm /run/suseconnect-keepalive.timer.is-active ||:
+fi
+
 %check
 %gotest -v %import_path/internal/connect %{?test_hwinfo_args}
 %gotest -v %import_path/suseconnect

Reply via email to