Hello community, here is the log from the commit of package vm-install for openSUSE:Factory checked in at 2014-01-15 16:27:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vm-install (Old) and /work/SRC/openSUSE:Factory/.vm-install.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vm-install" Changes: -------- --- /work/SRC/openSUSE:Factory/vm-install/vm-install.changes 2014-01-07 13:59:50.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.vm-install.new/vm-install.changes 2014-01-15 16:27:27.000000000 +0100 @@ -1,0 +2,8 @@ +Thu Jan 07 14:25:13 MDT 2014 - [email protected] + +- Translate vm-install.ycp to vm-install.rb + Added vm-install.rb + Dropped vm-install.ycp +- Version 0.8.1 + +------------------------------------------------------------------- Old: ---- vm-install-0.8.0.tar.bz2 New: ---- vm-install-0.8.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vm-install.spec ++++++ --- /var/tmp/diff_new_pack.gN6Le4/_old 2014-01-15 16:27:28.000000000 +0100 +++ /var/tmp/diff_new_pack.gN6Le4/_new 2014-01-15 16:27:28.000000000 +0100 @@ -22,12 +22,12 @@ BuildRequires: update-desktop-files # For directory ownership: BuildRequires: yast2 -Version: 0.8.0 +Version: 0.8.1 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.0.tar.bz2 +Source0: %{name}-0.8.1.tar.bz2 Source1: vm-install.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 x86_64 s390x @@ -91,7 +91,7 @@ %{_datadir}/vm-install %pysite/vminstall %pysite/vmdisks -%{_datadir}/YaST2/clients/vm-install.ycp +%{_datadir}/YaST2/clients/vm-install.rb %{_datadir}/applications/YaST2/vm-install.desktop %config(noreplace) %{_sysconfdir}/default/vm-install ++++++ vm-install-0.8.0.tar.bz2 -> vm-install-0.8.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.0/Makefile new/vm-install-0.8.1/Makefile --- old/vm-install-0.8.0/Makefile 2014-01-06 22:48:24.000000000 +0100 +++ new/vm-install-0.8.1/Makefile 2014-01-07 22:03:13.000000000 +0100 @@ -1,5 +1,5 @@ PACKAGE = vm-install -VER = 0.8.0 +VER = 0.8.1 default: @echo "Run 'make install DESTDIR=$destdir' to install." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.0/bin/vm-install.rb new/vm-install-0.8.1/bin/vm-install.rb --- old/vm-install-0.8.0/bin/vm-install.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/vm-install-0.8.1/bin/vm-install.rb 2014-01-07 22:27:25.000000000 +0100 @@ -0,0 +1,72 @@ +# encoding: utf-8 + +# ------------------------------------------------------------------------------ +# Copyright (c) 2009 Novell, Inc. All Rights Reserved. +# +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of version 2 of the GNU General Public License as published by the +# Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, contact Novell, Inc. +# +# To contact Novell about this file by physical or electronic mail, you may find +# current contact information at www.novell.com. +# ------------------------------------------------------------------------------ +# + +# File: vm-install.rb +# Package: Installation of a virtual machine +# Summary: Main VM installation YaST frontend for python based vm-install +# Authors: Charles E. Arnold <[email protected]> +# +# $Id$ +# + +module Yast + class VminstallClient < Client + def main + textdomain "vm-install" + + Yast.import "UI" + Yast.import "Popup" + Yast.import "String" + + #=================================================================== + # Start vm-install either Text (commandline) or GUI mode + #------------------------------------------------------------------- + status = 0 + @details = {} + + Builtins.y2milestone("START HERE.") + if UI.TextMode() + Builtins.y2milestone("Running vm-install in command line mode.") + status = UI.RunInTerminal("/usr/bin/vm-install") + else + Builtins.y2milestone("Running vm-install in GUI mode.") + details = Convert.to_map(SCR.Execute(path(".target.bash_output"), "/usr/bin/vm-install")) + status = Ops.get_integer(details, "exit", -1) + end + + Builtins.y2milestone("vm-install finished with exit code: <%1>", status) + if status == 0 + return :next + else + if Builtins.size(Ops.get_string(details, "stderr", "")) > 0 + Popup.ErrorDetails(_("Failed to start vm-install"), Convert.to_string(details, "stderr", "")) + else + Popup.Error(_("Failed to start vm-install")) + end + end + + nil + end + end +end + +Yast::VminstallClient.new.main diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.0/bin/vm-install.ycp new/vm-install-0.8.1/bin/vm-install.ycp --- old/vm-install-0.8.0/bin/vm-install.ycp 2013-11-19 00:33:16.000000000 +0100 +++ new/vm-install-0.8.1/bin/vm-install.ycp 1970-01-01 01:00:00.000000000 +0100 @@ -1,65 +0,0 @@ -/* ------------------------------------------------------------------------------ - * Copyright (c) 2009 Novell, Inc. All Rights Reserved. - * - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of version 2 of the GNU General Public License as published by the - * Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, contact Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, you may find - * current contact information at www.novell.com. - * ------------------------------------------------------------------------------ - */ - -/** - * File: clients/vm-install.ycp - * Package: Installation of a virtual machine - * Summary: Main VM installation YaST frontend for python based vm-install - * Authors: Charles E. Arnold <[email protected]> - * - * $Id$ - */ - -{ // begin -import "Popup"; - -textdomain "vm-install"; - -//=================================================================== -// Start vm-install either Text (commandline) or GUI mode -//------------------------------------------------------------------- -integer status = 0; -map details = $[]; -if (UI::TextMode()) -{ - y2milestone("Running vm-install in command line mode."); - status = (integer)UI::RunInTerminal("/usr/bin/vm-install"); -} -else -{ - y2milestone("Running vm-install in GUI mode."); - details = (map)SCR::Execute(.target.bash_output, "/usr/bin/vm-install"); - status = details["exit"]:0; -} - -y2milestone("vm-install finished with exit code: <%1>", status); -if (status == 0) { - return `next; -} else { - if (size(details["stderr"]:"") > 0){ - Popup::ErrorDetails(_("Failed to start vm-install"), (string)details["stderr"]:""); - } else { - Popup::Error(_("Failed to start vm-install")); - } -} -return `nil; - -} // end - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.0/setup.py new/vm-install-0.8.1/setup.py --- old/vm-install-0.8.0/setup.py 2014-01-06 22:48:16.000000000 +0100 +++ new/vm-install-0.8.1/setup.py 2014-01-07 22:03:10.000000000 +0100 @@ -1,7 +1,7 @@ from distutils.core import setup setup(name='vminstall', - version='0.8.0', + version='0.8.1', description='Define a virtual machine and install its operating system', author='Charles Coffing', author_email='[email protected]', @@ -13,7 +13,7 @@ ('share/man/man8', [ 'man/vm-install.8' ]), ('share/man/man8', [ 'man/vm-install-jobs.8' ]), ('share/vm-install', [ 'glade/vm-install.glade' ]), - ('share/YaST2/clients', [ 'bin/vm-install.ycp' ]), + ('share/YaST2/clients', [ 'bin/vm-install.rb' ]), ('share/applications/YaST2', [ 'vm-install.desktop' ]) ], packages = ['vminstall', 'vminstall.gtk', 'vminstall.text', 'vmdisks', 'vmdisks.gtk'], -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
