3
. /usr/share/recovery-mode/l10n.sh
5
if [ "$1" = "test" ]; then
6
echo $(eval_gettext "Repair broken packages")
11
rm /var/lib/apt/lists/partial/*
12
rm /var/cache/apt/archives/partial/*
14
# check and use dist-upgraders partial mode if we have it,
15
# it contains a lot of useful repair code
17
python="/usr/bin/python$v"
18
script="/usr/lib/python$v/site-packages/DistUpgrade/dist-upgrade.py"
19
if [ -x "$python" ] && [ -e "$script" ]; then
20
"$python" "$script" --partial --frontend DistUpgradeViewText \
21
--datadir /usr/share/update-manager/
26
# now run the apt foo again (if u-m was ok that shouldn't be needed
33
echo $(eval_gettext "Finished, please press ENTER")