Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package virt-bootstrap for openSUSE:Factory 
checked in at 2023-06-23 21:53:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/virt-bootstrap (Old)
 and      /work/SRC/openSUSE:Factory/.virt-bootstrap.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "virt-bootstrap"

Fri Jun 23 21:53:26 2023 rev:11 rq:1094854 version:1.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/virt-bootstrap/virt-bootstrap.changes    
2021-12-22 20:19:05.847876042 +0100
+++ /work/SRC/openSUSE:Factory/.virt-bootstrap.new.15902/virt-bootstrap.changes 
2023-06-23 21:53:33.654943737 +0200
@@ -1,0 +2,7 @@
+Mon Jun 19 12:34:56 UTC 2023 - oher...@suse.de
+
+- Add upstream 7704260f28c111b141e96e4e717a9522b23bc816.patch
+- Add upstream c8ce262cf346535713d45b4660cfdc02c99cfd4c.patch
+- Add upstream e30315182c5d95e6f5c14b4b743504434f966edd.patch
+
+-------------------------------------------------------------------

New:
----
  7704260f28c111b141e96e4e717a9522b23bc816.patch
  c8ce262cf346535713d45b4660cfdc02c99cfd4c.patch
  e30315182c5d95e6f5c14b4b743504434f966edd.patch

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

Other differences:
------------------
++++++ virt-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.VstTGU/_old  2023-06-23 21:53:34.398948001 +0200
+++ /var/tmp/diff_new_pack.VstTGU/_new  2023-06-23 21:53:34.402948023 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package virt-bootstrap
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,9 +24,11 @@
 Release:        0
 Summary:        System container rootfs creation tool
 License:        GPL-3.0-or-later
-Group:          Productivity/Other
 URL:            https://github.com/virt-manager/virt-bootstrap
 Source:         
http://virt-manager.org/download/sources/virt-bootstrap/%{name}-%{version}.tar.gz
+Patch0:         7704260f28c111b141e96e4e717a9522b23bc816.patch
+Patch1:         c8ce262cf346535713d45b4660cfdc02c99cfd4c.patch
+Patch2:         e30315182c5d95e6f5c14b4b743504434f966edd.patch
 BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module libguestfs}
 BuildRequires:  %{python_module passlib}
@@ -47,10 +49,10 @@
 libvirt containers.
 
 %prep
-%setup -q
-sed -i '1 {/env python/ d}' src/virtBootstrap/virt_bootstrap.py
+%autosetup -p1
 
 %build
+sed -i '1 {/env python/ d}' src/virtBootstrap/virt_bootstrap.py
 %python_build
 
 %install

++++++ 7704260f28c111b141e96e4e717a9522b23bc816.patch ++++++
>From 7704260f28c111b141e96e4e717a9522b23bc816 Mon Sep 17 00:00:00 2001
From: Radostin Stoyanov <rstoya...@fedoraproject.org>
Date: Mon, 27 Jun 2022 19:32:52 +0100
Subject: [PATCH] virt_bootstrap: Fix build with Python 3.11

Changed in version 3.11: codeset parameter is removed.
https://docs.python.org/3.11/library/gettext.html

Signed-off-by: Radostin Stoyanov <rstoya...@fedoraproject.org>
---
 src/virtBootstrap/virt_bootstrap.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/virtBootstrap/virt_bootstrap.py 
b/src/virtBootstrap/virt_bootstrap.py
index b486ac3..1a86cc4 100755
--- a/src/virtBootstrap/virt_bootstrap.py
+++ b/src/virtBootstrap/virt_bootstrap.py
@@ -45,8 +45,7 @@
 gettext.textdomain("virt-bootstrap")
 try:
     gettext.install("virt-bootstrap",
-                    localedir="/usr/share/locale",
-                    codeset='utf-8')
+                    localedir="/usr/share/locale")
 except IOError:
     try:
         import __builtin__

++++++ c8ce262cf346535713d45b4660cfdc02c99cfd4c.patch ++++++
>From c8ce262cf346535713d45b4660cfdc02c99cfd4c Mon Sep 17 00:00:00 2001
From: Radostin Stoyanov <rstoyan...@gmail.com>
Date: Sat, 3 Aug 2019 15:43:15 +0100
Subject: [PATCH] pylint: Fix unsubscriptable-object

Value 'root_password' is unsubscriptable (unsubscriptable-object)

Signed-off-by: Radostin Stoyanov <rstoyan...@gmail.com>
---
 tests/__init__.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/tests/__init__.py b/tests/__init__.py
index ce0d5fa..f5a9613 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -334,15 +334,14 @@ def validate_shadow_hash(self, shadow_content):
         Note: For simplicity we assume that the first line of /etc/shadow
         contains the root entry.
         """
-        root_password = self.root_password
-        if root_password and root_password.startswith('file:'):
-            root_password_file = root_password[len('file:'):]
-            with open(root_password_file) as pwdfile:
-                root_password = pwdfile.readline().rstrip("\n\r")
+
+        if self.root_password.startswith('file:'):
+            with open(self.root_password[len('file:'):]) as pwdfile:
+                self.root_password = pwdfile.readline().rstrip("\n\r")
 
         self.assertTrue(
             passlib.hosts.linux_context.verify(
-                root_password,
+                self.root_password,
                 shadow_content[0].split(':')[1]
             ),
             "Invalid root password hash."

++++++ e30315182c5d95e6f5c14b4b743504434f966edd.patch ++++++
>From e30315182c5d95e6f5c14b4b743504434f966edd Mon Sep 17 00:00:00 2001
From: Radostin Stoyanov <rstoyan...@gmail.com>
Date: Sat, 3 Aug 2019 14:57:22 +0100
Subject: [PATCH] pylint: Specify string format as parameters

Pylint (logging-not-lazy) warning

Specify string format arguments as logging function parameters

Signed-off-by: Radostin Stoyanov <rstoyan...@gmail.com>
---
 src/virtBootstrap/virt_bootstrap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virtBootstrap/virt_bootstrap.py 
b/src/virtBootstrap/virt_bootstrap.py
index f70acbd..b486ac3 100755
--- a/src/virtBootstrap/virt_bootstrap.py
+++ b/src/virtBootstrap/virt_bootstrap.py
@@ -151,7 +151,7 @@ def bootstrap(uri, dest,
     if root_password:
         if root_password.startswith('file:'):
             root_password_file = root_password[len('file:'):]
-            logger.debug("Reading root password from file %s" %
+            logger.debug("Reading root password from file %s",
                          root_password_file)
             with open(root_password_file) as pwdfile:
                 root_password = pwdfile.readline().rstrip("\n\r")

Reply via email to