Disable checking for updates when updates are in progress
Disable checking for updates when updates are in progress

Checking for updates while updating produces a pretty nasty race
condition where the update process will most likely return with the new
updates before the old ones have finished updating.  This means that the
old package cards will be removed and new identical ones added.  Since
the update button is only disabled on the *old* card, it appears as if
you can click the update button on the new card to continue updating.
This in fact tries to update the package multiple times, which is...not
desirable.

Alternatively, addUpdateViews can be smarter and not completely empty
the view but rather add and remove cards based on the availableUpdates
array and which packages already exist in the view.  Not sure if that's
worth the effort though.

atom/settings-view