[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-12-22 Thread Launchpad Bug Tracker
** Branch linked: lp:~vmbuilder-dev/vmbuilder/packaging -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warning-message-printing fail when --part

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Barry Warsaw
Merge proposal for trunk: https://code.launchpad.net/~barry/vmbuilder/bug-612082/+merge/80615 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warn

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Launchpad Bug Tracker
** Branch linked: lp:~barry/ubuntu/precise/vm-builder/bug-612082 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warning-message-printing fail wh

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/vm-builder -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonex

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Daniel Holbert
Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file) To manage notific

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Barry Warsaw
On further reflection, I think the patch is safe to upload to Precise, and I will do this. I'm not entirely convinced the bug meets the SRU guidelines for Lucid https://wiki.ubuntu.com/StableReleaseUpdates so I won't prepare an SRU for it. I have however uploaded vm- builder_0.12.4-0ubuntu0.3~p

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Launchpad Bug Tracker
This bug was fixed in the package vm-builder - 0.12.4+bzr471-0ubuntu2 --- vm-builder (0.12.4+bzr471-0ubuntu2) precise; urgency=low [ Daniel Holbert ] * Fix warning messages when --part is given a nonexistent file. (LP: #612082) -- Barry WarsawThu, 27 Oct 2011 15:52:56 -04

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Barry Warsaw
I've also uploaded the Precise package to my PPA, which you can enable with: $ sudo add-apt-repostory ppa:barry/python ** Also affects: vmbuilder Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ub

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Barry Warsaw
Daniel, thanks very much for your contribution to Ubuntu. I am unable to reproduce this bug because for some reason vm-builder just hangs for me on both Lucid and Precise. However, from visual inspection, I think your patch is spot on. Note however that it does not apply cleanly to Precise. See

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-27 Thread Launchpad Bug Tracker
** Branch linked: lp:~barry/vmbuilder/bug-612082 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warning-message-printing fail when --part is giv

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2011-10-21 Thread Dave Walker
** Changed in: vm-builder (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warning-message-printing fail wh

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2010-12-03 Thread Brian Murray
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/612082 Title: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file) -- u

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2010-12-03 Thread Daniel Holbert
Assigning bug to me, since I've attached a fix. I'm not sure who to ask for code-review from (if needed) or how to get the patch committed, though -- Soren, could you perhaps help with either of those? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscr

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2010-12-03 Thread Daniel Holbert
Here's the patch as described above. Just passes the "optparser" variable to set_disk_layout, and uses it to print the error instead of using the nonexistent "self.optparser" & "hypervisor.optparser". I've confirmed that this works locally (i.e. it makes vmbuilder print the warning message instea

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2010-12-03 Thread Daniel Holbert
that didn't work -- reading the file slightly more intelligently, I see that "optparser" is a local variable initialized in "main" and passed to its helper functions. It's not passed to set_disk_layout, though (but it should be). -- You received this bug notification because you are a member of

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2010-12-03 Thread Daniel Holbert
self.optparser didn't work -- tried that because there was one other usage of that in the file, but it gives me >AttributeError: 'CLI' object has no attribute 'optparser So the existing "self.optparser" line is probably just as busted as this bug's "hypervisor.optparser" line. :) Trying just pla

[Bug 612082] Re: optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

2010-12-03 Thread Daniel Holbert
> hypervisor.optparser.error("%s parsing --part option: %s" % (errno, strerror)) My python-fu is not strong, but from looking at the rest of the cli.py file, I think we want "self.optparser", not "hypervisor.optparser". Testing that to see if that fixes it locally... -- You received this bug n

[Bug 612082] Re: optparser attribute missing in cli.py

2010-12-03 Thread Daniel Holbert
I had this exact problem, and I just figured out what was going wrong. It turned out to be that I'd passed a nonexistent file to "--part" in my vmbuilder command. (In the bug-reporter's case -- I'm not sure whether --part accepts relative paths or not, but if you're sure that vmbuilder.partition e

[Bug 612082] Re: optparser attribute missing in cli.py

2010-08-03 Thread Mathias Gug
** Changed in: vm-builder (Ubuntu) Importance: Undecided => Medium -- optparser attribute missing in cli.py https://bugs.launchpad.net/bugs/612082 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bug