Hello community,

here is the log from the commit of package vm-install for openSUSE:Factory 
checked in at 2017-06-22 10:41:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vm-install (Old)
 and      /work/SRC/openSUSE:Factory/.vm-install.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vm-install"

Thu Jun 22 10:41:13 2017 rev:158 rq:505583 version:0.8.67

Changes:
--------
--- /work/SRC/openSUSE:Factory/vm-install/vm-install.changes    2017-05-24 
16:52:04.356150824 +0200
+++ /work/SRC/openSUSE:Factory/.vm-install.new/vm-install.changes       
2017-06-22 10:41:13.630565978 +0200
@@ -1,0 +2,7 @@
+Mon Jun 19 10:39:48 MDT 2017 - carn...@suse.com
+
+- bsc#1024437 - vm-install interprets disk size incorrectly when
+  used as an option to the command
+- Version 0.8.67
+
+-------------------------------------------------------------------

Old:
----
  vm-install-0.8.66.tar.bz2

New:
----
  vm-install-0.8.67.tar.bz2

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

Other differences:
------------------
++++++ vm-install.spec ++++++
--- /var/tmp/diff_new_pack.05dMOT/_old  2017-06-22 10:41:14.282474064 +0200
+++ /var/tmp/diff_new_pack.05dMOT/_new  2017-06-22 10:41:14.282474064 +0200
@@ -27,12 +27,12 @@
 %endif
 # For directory ownership:
 BuildRequires:  yast2
-Version:        0.8.66
+Version:        0.8.67
 Release:        0
 Summary:        Tool to Define a Virtual Machine and Install Its Operating 
System
 License:        GPL-2.0
 Group:          System/Emulators/PC
-Source0:        %{name}-0.8.66.tar.bz2
+Source0:        %{name}-0.8.67.tar.bz2
 Source1:        vm-install.conf
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Requires:       dbus-1-python

++++++ vm-install-0.8.66.tar.bz2 -> vm-install-0.8.67.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vm-install-0.8.66/Makefile 
new/vm-install-0.8.67/Makefile
--- old/vm-install-0.8.66/Makefile      2017-05-16 16:31:23.811237290 +0200
+++ new/vm-install-0.8.67/Makefile      2017-06-19 18:42:39.249813494 +0200
@@ -1,5 +1,5 @@
 PACKAGE = vm-install
-VER = 0.8.66
+VER = 0.8.67
 
 default:
        @echo "Run 'make install DESTDIR=$destdir' to install."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vm-install-0.8.66/setup.py 
new/vm-install-0.8.67/setup.py
--- old/vm-install-0.8.66/setup.py      2017-05-16 16:31:19.267409263 +0200
+++ new/vm-install-0.8.67/setup.py      2017-06-19 18:42:25.030352175 +0200
@@ -1,7 +1,7 @@
 from distutils.core import setup
 
 setup(name='vminstall',
-      version='0.8.66',
+      version='0.8.67',
       description='Define a virtual machine and install its operating system',
       author='Charles Coffing',
       author_email='ccoff...@novell.com',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vm-install-0.8.66/src/vmdisks/disks.py 
new/vm-install-0.8.67/src/vmdisks/disks.py
--- old/vm-install-0.8.66/src/vmdisks/disks.py  2017-01-25 19:09:42.902794097 
+0100
+++ new/vm-install-0.8.67/src/vmdisks/disks.py  2017-06-19 18:42:30.678138121 
+0200
@@ -517,6 +517,19 @@
             continue
         else:
             raise ParamError(err=ParamError.E_INVALID, details=arg)
+    if blocks is None and pdev is not None:
+        items = pdev.split(':', 1)
+        if len(items) == 1:
+            path = items[0]
+        else:
+            path = items[1]
+        if path is not None and os.path.exists(path):
+            try:
+                stats = os.stat(path)
+                blocks = stats.st_size / 512
+            except:
+                pass
+
     disk = Disk(pdev=pdev, vdev=vdev, vdevType=vdevType, ro=ro, blocks=blocks, 
virtio=virtio)
     if extended:
         disk.description = params[5]


Reply via email to