Add more securities before purge

Registered by YannUbuntu

Currently B-R checks internet connection before allowing the user to use the "Purge and reinstall GRUB" option, but then the user might remain without possibility of reinstalling GRUB if :
1) internet is disconnected just after the user has clicked the "Apply" button
2) sources.list contains no repository with GRUB packages
3) DEB cannot be installed whatever the reason (apt broken ...)

This blueprint is to find securities against these risks.

e.g. one idea to solve 1) and 2) is to download the required DEBs before purge.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
YannUbuntu
Direction:
Approved
Assignee:
YannUbuntu
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
YannUbuntu
Completed by
YannUbuntu

Whiteboard

- we can't use the "apt-get download" option because it does not exist for 10.04 and 10.10. (until APT 0.8.11)

- Other suggestion:
DEB=pastebinit; REP=/var/cache/apt/archives; sudo rm -f $REP/${DEB}_*; sudo apt-get -dy install --reinstall $DEB && echo "internet OK" || echo "internet KO or dpkg blocked (e.g. Synaptic is open)"

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.