FS#11649 - pacman offers option to abort removing virtualbox but doesn't abandon

Attached to Project: Community Packages
Opened by robin wood (dninja) - Friday, 03 October 2008, 17:14 GMT
Last edited by Geoffroy Carrier (gcarrier) - Tuesday, 21 October 2008, 02:43 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Dan McGee (toofishes)
Geoffroy Carrier (gcarrier)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I just went to remove virtualbox-ose and got the following message

Code:

# pacman -R virtualbox-ose
checking dependencies...
===> Warning: saved states and snapshots are not compatible between different
===> versions of VirtualBox.
===> Merge all snapshots, restore all saved states and shutdown all VMs properly
===> before attempting to upgrade.
===> Please press Enter to continue or, if necessary, you can cancel
===> this operation by quitting pacman with Ctrl+C.

So I hit Ctrl-C but the remove completed anyway
Code:

^Cerror: call to waitpid failed (Interrupted system call)
(1/1) removing virtualbox-ose [########################################################################] 100%

I checked, just to make sure that it did do the remove and it did
Code:

# pacman -Qi virtualbox-ose
error: package "virtualbox-ose" not found

This needs fixing


Additional info:
* package version(s)
community/virtualbox-ose 2.0.2-2

* config and/or log files etc.


Steps to reproduce:
its a one shot thing for me, I removed it and I don't want it back on having changed to the bin version
This task depends upon

Closed by  Geoffroy Carrier (gcarrier)
Tuesday, 21 October 2008, 02:43 GMT
Reason for closing:  Fixed
Comment by Roman Kyrylych (Romashka) - Sunday, 05 October 2008, 12:48 GMT
@Geoffroy: please check the state of snapshot compatibility in 2.0.2, I saw lots of commits about snapshots in SVN this summer, so maybe they actually are compatible now (and then the message can be removed)

@Dan: any ideas on "error: call to waitpid failed (Interrupted system call)"?
Comment by Dan McGee (toofishes) - Sunday, 05 October 2008, 15:32 GMT
Yeah- you ctrl-Ced during a call to waitpid(). Making your install/remove scriptlets interactive is an awful idea (ever consider --noconfirm usage?).

Anyway, interrupts during the scriptlets should be handled better if/when I get this patch pushed:
http://code.toofishes.net/gitweb.cgi?p=pacman.git;a=commitdiff;h=abcb6fa66bc74b00b0114559509a8f1d4de7d9d0
Comment by Geoffroy Carrier (gcarrier) - Tuesday, 21 October 2008, 02:41 GMT
Sorry, that was from the original packager. PKGBUILD updated for future versions.

Loading...