Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tik for openSUSE:Factory checked in 
at 2024-05-17 20:04:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tik (Old)
 and      /work/SRC/openSUSE:Factory/.tik.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tik"

Fri May 17 20:04:58 2024 rev:4 rq:1174595 version:0.9.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/tik/tik.changes  2024-05-15 21:29:47.112516475 
+0200
+++ /work/SRC/openSUSE:Factory/.tik.new.1880/tik.changes        2024-05-17 
20:06:02.713295465 +0200
@@ -1,0 +2,12 @@
+Thu May 16 14:21:05 UTC 2024 - rbr...@suse.com
+
+- Update to version 0.9.5:
+  * module-welcome: change echo to log
+  * Set boot target after all modules
+  * If restoring btrfs containers, set container storage driver to btrfs
+  * Moved AC power detection function after the welcome message
+  * Apply suggestions from code review
+  * Update 10-welcome
+  * Added code to detect laptop is connected to AC power before proceeding to 
copy home files to flash drive and starting upgrade
+
+-------------------------------------------------------------------

Old:
----
  tik-0.9.4.tar.xz

New:
----
  tik-0.9.5.tar.xz

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

Other differences:
------------------
++++++ tik.spec ++++++
--- /var/tmp/diff_new_pack.xAjzxm/_old  2024-05-17 20:06:03.517324518 +0200
+++ /var/tmp/diff_new_pack.xAjzxm/_new  2024-05-17 20:06:03.517324518 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           tik
-Version:        0.9.4
+Version:        0.9.5
 Release:        0
 Summary:        Transactional Installation Kit
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.xAjzxm/_old  2024-05-17 20:06:03.549325674 +0200
+++ /var/tmp/diff_new_pack.xAjzxm/_new  2024-05-17 20:06:03.553325819 +0200
@@ -3,7 +3,7 @@
   <service name="obs_scm" mode="localonly">
     <param name="url">https://github.com/sysrich/tik.git</param>
     <param name="scm">git</param>
-    <param name="revision">v0.9.4</param>
+    <param name="revision">v0.9.5</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
     <param name="versionrewrite-pattern">v(.*)</param>

++++++ tik-0.9.4.tar.xz -> tik-0.9.5.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tik-0.9.4/usr/bin/tik new/tik-0.9.5/usr/bin/tik
--- old/tik-0.9.4/usr/bin/tik   2024-05-15 15:38:35.000000000 +0200
+++ new/tik-0.9.5/usr/bin/tik   2024-05-16 16:19:02.000000000 +0200
@@ -55,9 +55,9 @@
 get_disk
 get_img
 dump_image "${TIK_INSTALL_IMAGE}" "${TIK_INSTALL_DEVICE}"
-set_boot_target
 
 load_modules "post"
 load_modules "post" "custom"
 
+set_boot_target
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tik-0.9.4/usr/lib/tik/modules/post/20-mig 
new/tik-0.9.5/usr/lib/tik/modules/post/20-mig
--- old/tik-0.9.4/usr/lib/tik/modules/post/20-mig       2024-05-15 
15:38:35.000000000 +0200
+++ new/tik-0.9.5/usr/lib/tik/modules/post/20-mig       2024-05-16 
16:19:02.000000000 +0200
@@ -40,6 +40,7 @@
                subsubdirname=$(dirname $subsubvol | awk -F 
"${mig_dir}/${snap_dir}" '{print $2}')
                (prun /usr/sbin/btrfs send ${subsubvol} | pv -f -F "# %b copied 
in %t %r" | prun /usr/sbin/btrfs receive ${mig_dir}/mnt/home/${subsubdirname} ) 
2>&1 | d --progress --title="Restoring containers" --pulsate --auto-close 
--no-cancel --width=400
                prun /usr/sbin/btrfs property set -f -ts 
${mig_dir}/mnt/home/${subsubdirname}/${subsubvolname} ro false
+               prun-opt /usr/bin/sed -i 's/driver = "overlay"/driver = 
"btrfs"/g' ${mig_dir}/mnt/etc/containers/storage.conf
 
         done
        # TODO - probe restored home directories, find a marker as to whether 
aeon-firstboot has run, if not, then copy the desktop from the systems skel to 
there.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tik-0.9.4/usr/lib/tik/modules/pre/10-welcome 
new/tik-0.9.5/usr/lib/tik/modules/pre/10-welcome
--- old/tik-0.9.4/usr/lib/tik/modules/pre/10-welcome    2024-05-15 
15:38:35.000000000 +0200
+++ new/tik-0.9.5/usr/lib/tik/modules/pre/10-welcome    2024-05-16 
16:19:02.000000000 +0200
@@ -1,5 +1,36 @@
 # SPDX-License-Identifier: MIT
 # SPDX-FileCopyrightText: Copyright 2024 SUSE LLC
 # SPDX-FileCopyrightText: Copyright 2024 Richard Brown
+# File Author: Raymond Yip
+
+proceedInstall() {
+       d --info --ok-label="Install Now" --no-wrap --width=300 --height=300 
--icon=distributor-logo-Aeon-symbolic --title="" --text="<big>Welcome to 
${TIK_OS_NAME}</big>\n\nPlease press <b>Install Now</b> to continue"
+}
+
+warningMSG() {
+       d --warning --no-wrap --title="AC Power Required" --text="Please 
connect the AC power adapter to your machine to continue" 
+}
+
+checkLaptop() {
+       chassis=`cat /sys/class/dmi/id/chassis_type`
+       #Test for respectively Handheld, Notebook, Laptop, and Portable
+       if [ $chassis = "11" ] || [ $chassis = "10" ] || [ $chassis = "9" ] || 
[ $chassis = "8" ]; then
+               #Tested machine is confirmed mobile
+               #Check for AC power connection
+               #Check file exists first
+               if [ -f "/sys/class/power_supply/AC/online" ]; then
+                       #File exists
+                       #While the AC power cable is still disconnected
+                       while (grep -Fxq "0" 
"/sys/class/power_supply/AC/online"); do
+                               log "AC power disconnected"
+                               #Display warning message
+                               warningMSG
+                       done
+               fi
+       fi
+}
+
+proceedInstall
+checkLaptop
+
 
-d --info --ok-label="Install Now" --no-wrap --width=300 --height=300 
--icon=distributor-logo-Aeon-symbolic --title="" --text="<big>Welcome to 
${TIK_OS_NAME}</big>\n\nPlease press <b>Install Now</b> to continue"
\ No newline at end of file

Reply via email to