Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package virt-scenario for openSUSE:Factory 
checked in at 2023-03-25 18:55:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/virt-scenario (Old)
 and      /work/SRC/openSUSE:Factory/.virt-scenario.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "virt-scenario"

Sat Mar 25 18:55:34 2023 rev:8 rq:1074201 version:1.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/virt-scenario/virt-scenario.changes      
2023-03-24 15:21:41.535285622 +0100
+++ /work/SRC/openSUSE:Factory/.virt-scenario.new.31432/virt-scenario.changes   
2023-03-25 18:55:45.706791079 +0100
@@ -1,0 +2,8 @@
+Fri Mar 24 14:04:35 UTC 2023 - Antoine Ginies <[email protected]>
+
+- version 1.0.4:
+  * change default configstore to /etc/virt-scenario/vmconfig
+    this is needed to automatically save the config in case of usage
+    of a container.
+
+-------------------------------------------------------------------

Old:
----
  virt-scenario-1.0.3.tar.gz

New:
----
  virt-scenario-1.0.4.tar.gz

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

Other differences:
------------------
++++++ virt-scenario.spec ++++++
--- /var/tmp/diff_new_pack.8rxsS8/_old  2023-03-25 18:55:46.662796076 +0100
+++ /var/tmp/diff_new_pack.8rxsS8/_new  2023-03-25 18:55:46.666796097 +0100
@@ -19,7 +19,7 @@
 %define pythons python3
 
 Name:           virt-scenario
-Version:        1.0.3
+Version:        1.0.4
 Release:        0
 Summary:        Create XML guest configuration and prepare the host for a 
scenario
 License:        GPL-3.0-or-later

++++++ virt-scenario-1.0.3.tar.gz -> virt-scenario-1.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/ChangeLog 
new/virt-scenario-1.0.4/ChangeLog
--- old/virt-scenario-1.0.3/ChangeLog   2023-03-24 12:08:37.000000000 +0100
+++ new/virt-scenario-1.0.4/ChangeLog   2023-03-24 15:03:48.000000000 +0100
@@ -1,5 +1,25 @@
 2023-03-24 aginies  <[email protected]>
     
+    vm-config-store: /etc/virts-scenario/vmconfig; 1.0.4
+    
+    
+2023-03-24 aginies  <[email protected]>
+    
+    change default configstore to /etc/virt-scenario/vmconfig
+    
+    
+2023-03-24 aginies  <[email protected]>
+    
+    check_iam_root is from util
+    
+    
+2023-03-24 aginies  <[email protected]>
+    
+    if root store config in /etc/virt-scenario/vmconfig
+    
+    
+2023-03-24 aginies  <[email protected]>
+    
     sync with README.md
     
     
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/PKG-INFO 
new/virt-scenario-1.0.4/PKG-INFO
--- old/virt-scenario-1.0.3/PKG-INFO    2023-03-24 12:08:37.000000000 +0100
+++ new/virt-scenario-1.0.4/PKG-INFO    2023-03-24 15:03:48.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: virt-scenario
-Version: 1.0.3
+Version: 1.0.4
 Summary: Virt-scenario
 Home-page: https://github.com/aginies/virt-scenario
 Author: Antoine Ginies
@@ -43,7 +43,7 @@
         # This will overwrite scenario settings....
         config:
           - path: /etc/virt-scenario
-          - vm-config-store: ~/.local/virtscenario/
+          - vm-config-store: /etc/virts-scenario/vmconfig
         emulator:
           - emulator: /usr/bin/qemu-system-x86_64
         input:
@@ -408,7 +408,7 @@
         securevm
         ```
         
-        The generated XML file is available in 
**~/.local/virtscenario/ALPOS/domain.xml**. You can also find
+        The generated XML file is available in 
**~/etc/virt-scenario/vmconfig/ALPOS/domain.xml**. You can also find
          a **config.yaml** which contains host data about this VM. In our case 
**attestation** will be set to
         true, the host will be **localhost**. The 
**/etc/virt-scenario/virthosts.yaml** will be updated to 
         configure the correct path to the extracted PDH file (sev-cert).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/README.md 
new/virt-scenario-1.0.4/README.md
--- old/virt-scenario-1.0.3/README.md   2023-03-23 19:28:24.000000000 +0100
+++ new/virt-scenario-1.0.4/README.md   2023-03-24 14:51:59.000000000 +0100
@@ -35,7 +35,7 @@
 # This will overwrite scenario settings....
 config:
   - path: /etc/virt-scenario
-  - vm-config-store: ~/.local/virtscenario/
+  - vm-config-store: /etc/virts-scenario/vmconfig
 emulator:
   - emulator: /usr/bin/qemu-system-x86_64
 input:
@@ -400,7 +400,7 @@
 securevm
 ```
 
-The generated XML file is available in 
**~/.local/virtscenario/ALPOS/domain.xml**. You can also find
+The generated XML file is available in 
**~/etc/virt-scenario/vmconfig/ALPOS/domain.xml**. You can also find
  a **config.yaml** which contains host data about this VM. In our case 
**attestation** will be set to
 true, the host will be **localhost**. The 
**/etc/virt-scenario/virthosts.yaml** will be updated to 
 configure the correct path to the extracted PDH file (sev-cert).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/setup.py 
new/virt-scenario-1.0.4/setup.py
--- old/virt-scenario-1.0.3/setup.py    2023-03-23 19:28:44.000000000 +0100
+++ new/virt-scenario-1.0.4/setup.py    2023-03-24 14:52:05.000000000 +0100
@@ -161,7 +161,7 @@
 
 setuptools.setup(
     name="virt-scenario",
-    version="1.0.3",
+    version="1.0.4",
     author="Antoine Ginies",
     author_email="[email protected]",
     description="Virt-scenario",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/virt-scenario-1.0.3/src/virt_scenario.egg-info/PKG-INFO 
new/virt-scenario-1.0.4/src/virt_scenario.egg-info/PKG-INFO
--- old/virt-scenario-1.0.3/src/virt_scenario.egg-info/PKG-INFO 2023-03-24 
12:08:37.000000000 +0100
+++ new/virt-scenario-1.0.4/src/virt_scenario.egg-info/PKG-INFO 2023-03-24 
15:03:48.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: virt-scenario
-Version: 1.0.3
+Version: 1.0.4
 Summary: Virt-scenario
 Home-page: https://github.com/aginies/virt-scenario
 Author: Antoine Ginies
@@ -43,7 +43,7 @@
         # This will overwrite scenario settings....
         config:
           - path: /etc/virt-scenario
-          - vm-config-store: ~/.local/virtscenario/
+          - vm-config-store: /etc/virts-scenario/vmconfig
         emulator:
           - emulator: /usr/bin/qemu-system-x86_64
         input:
@@ -408,7 +408,7 @@
         securevm
         ```
         
-        The generated XML file is available in 
**~/.local/virtscenario/ALPOS/domain.xml**. You can also find
+        The generated XML file is available in 
**~/etc/virt-scenario/vmconfig/ALPOS/domain.xml**. You can also find
          a **config.yaml** which contains host data about this VM. In our case 
**attestation** will be set to
         true, the host will be **localhost**. The 
**/etc/virt-scenario/virthosts.yaml** will be updated to 
         configure the correct path to the extracted PDH file (sev-cert).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/src/virtscenario/__init__.py 
new/virt-scenario-1.0.4/src/virtscenario/__init__.py
--- old/virt-scenario-1.0.3/src/virtscenario/__init__.py        2023-03-23 
19:28:53.000000000 +0100
+++ new/virt-scenario-1.0.4/src/virtscenario/__init__.py        2023-03-24 
14:51:03.000000000 +0100
@@ -30,4 +30,4 @@
 
     builtins.__dict__["_"] = str
 
-__version__ = "1.0.3"
+__version__ = "1.0.4"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/src/virtscenario/main.py 
new/virt-scenario-1.0.4/src/virtscenario/main.py
--- old/virt-scenario-1.0.3/src/virtscenario/main.py    2023-03-24 
12:03:42.000000000 +0100
+++ new/virt-scenario-1.0.4/src/virtscenario/main.py    2023-03-24 
14:50:32.000000000 +0100
@@ -179,7 +179,11 @@
     # define some None
     conffile = find_conffile()
     hvfile = find_hvfile()
-    vm_config_store = '~/.local/virtscenario/'
+    # TOLOOK AFTER MARCH PROTO
+    if util.check_iam_root():
+        vm_config_store = '/etc/virt-scenario/vmconfig'
+    else:
+        vm_config_store = '~/.local/virtscenario/'
     emulator = None
     inputkeyboard = ""
     inputmouse = ""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/src/virtscenario/util.py 
new/virt-scenario-1.0.4/src/virtscenario/util.py
--- old/virt-scenario-1.0.3/src/virtscenario/util.py    2023-03-23 
17:57:16.000000000 +0100
+++ new/virt-scenario-1.0.4/src/virtscenario/util.py    2023-03-24 
14:36:08.000000000 +0100
@@ -195,7 +195,7 @@
     some part needs to be root user
     """
     if os.geteuid() != 0:
-        print_error("You need to have root privileges for this step")
+        print_error("You are not root.")
         return False
     return True
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/virt-scenario-1.0.3/src/virtscenario.yaml 
new/virt-scenario-1.0.4/src/virtscenario.yaml
--- old/virt-scenario-1.0.3/src/virtscenario.yaml       2023-03-23 
17:59:48.000000000 +0100
+++ new/virt-scenario-1.0.4/src/virtscenario.yaml       2023-03-24 
14:49:49.000000000 +0100
@@ -4,7 +4,7 @@
 
 config:
   - path: /etc/virt-scenario
-  - vm-config-store: ~/.local/virtscenario/
+  - vm-config-store: /etc/virt-scenario/vmconfig
 
 #hypervisors:
 #  - hvconf: virthosts.yaml

Reply via email to