Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675408 - app-emulation/virt-manager-2.0.0 - virt-clone: ERROR local variable 'need' referenced before assignment
Summary: app-emulation/virt-manager-2.0.0 - virt-clone: ERROR local variable 'need' re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2019-01-14 15:46 UTC by Horst Prote
Modified: 2019-07-01 16:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Prote 2019-01-14 15:46:21 UTC
When running
  virt-clone --connect qemu:///system --original <source-vm> --name <new-vm> --file /dev/<vg-name>/<new-vm>
I get the error:
  ERROR    local variable 'need' referenced before assignment

This is caused by a too deep indentation of the line
        need = int(self._size) * 1024 * 1024 * 1024
in /usr/share/virt-manager/virtinst/diskbackend.py (line 533). Upstream already has fixed this with commit https://github.com/virt-manager/virt-manager/commit/722886748006b880ff6a99781b2aca0751aafc55#diff-33560dd1575b58f1a4602a360b2d8486
Comment 1 Larry the Git Cow gentoo-dev 2019-07-01 16:59:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64e52bc3829bbf372ff23d343078b7b879d61425

commit 64e52bc3829bbf372ff23d343078b7b879d61425
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-07-01 16:30:43 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-07-01 16:59:19 +0000

    app-emulation/virt-manager: version bump to 2.2.0
    
    Closes: https://bugs.gentoo.org/681916
    Closes: https://bugs.gentoo.org/675408
    Package-Manager: Portage-2.3.68, Repoman-2.3.16
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/virt-manager/Manifest                |  1 +
 .../virt-manager/virt-manager-2.2.0.ebuild         | 93 ++++++++++++++++++++++
 2 files changed, 94 insertions(+)