Wednesday, January 16, 2008

Lets not cancel installations because the package manager is locked



At the moment, installing a package is sometimes like:

1) Install package
2) While package is installing, run another instance of the package manager
3) The second package manager just commits suicide with a "repository is locked" error. If you're lucky it asks you to click the retry button. Generally it will just error out with a lame message.


WTF. Seriously, change it so that the second package manager simply waits for the first.


Nobody likes programs which quit with locking errors. And yes APT, my friend, you locked your repository for me yesterday. I knew what was wrong immediately, but I know plenty of people who wouldn't (locking error eh, does that mean you have locked up?). I love you APT, but sometimes, its too much :-(


Windows apps does this same thing. Many apps will just show an error, requiring you to press retry. Apple's apps on windows, decide to be user friendly and crash instead during installation in the case there are locks, so you have no idea.


On OSX however, its a different story, when programs are installed via Apple's package management format, they will wait for each other. It makes remote administration easier (ie, you can have 4 administators logged in at the same time installing stuff, without 3 installers stalling or crashing, they simply will wait for their turn).

No comments: